/* Author index (6b/8d) and author page (6c/8d) — mobile-first, tokens only.
   Avatars are the sole border-radius exception (50%). */

.author-layout,
.author-index {
    max-width: var(--page-max);
    margin: 0 auto;
    padding: 0 var(--gutter) var(--space-8);
}

.author-index__header,
.author-header {
    padding: var(--space-6) 0 var(--space-5);
    border-bottom: var(--rule-strong) solid var(--ink);
}

.author-index__title,
.author-header__name {
    margin: 0;
    font-size: var(--text-h1);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-headline);
    color: var(--ink);
}

/* 6b: the index header closes with a 1px rule; the author page keeps the
   2.5px ink rule shared above. Title 30px on phones, 38px from 900px. */
.author-index__header {
    border-bottom: var(--rule-hairline) solid var(--rule);
}

.author-index .author-index__title {
    font-size: 30px;
    line-height: 1.1;
}

.author-index__intro {
    margin: 10px 0 0;
    max-width: 540px;
    font: 400 15px / 1.6 var(--font-serif);
    color: var(--body);
}

.author-index__intro a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
    color: var(--accent);
    font-family: var(--font-sans);
    font-weight: 500;
    text-decoration: underline;
}

/* --- Author index: name search (design 6b) ---------------------------- */

.author-index__toolbar {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-top: 18px;
}

/* 6b: a 1.5px underline with the magnifier, not a boxed field. */
.author-index__search {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 380px;
    padding: 2px 2px 0;
    border-bottom: var(--rule-medium) solid var(--ink);
}

.author-index__search-icon {
    flex: none;
    color: var(--ink);
}

.author-index__search-input {
    flex: 1;
    min-width: 0;
    min-height: var(--target-min);
    border: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: transparent;
}

.author-index__search-input::placeholder {
    color: var(--meta);
}

@media (min-width: 640px) {
    .author-index__toolbar {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .author-index__search {
        flex: 1 1 auto;
    }
}

@media (min-width: 900px) {
    .author-index .author-index__title {
        font-size: 38px;
    }
}

.author-breadcrumb {
    margin: 0 0 var(--space-3);
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    color: var(--meta);
}

.author-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.author-breadcrumb a:hover,
.author-breadcrumb a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.author-section-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-7) 0 var(--space-4);
}

.author-section-heading:first-of-type {
    margin-top: var(--space-6);
}

.author-section-heading__label {
    margin: 0;
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.author-section-heading__rule {
    flex: 1;
    height: var(--rule-strong);
    background: var(--ink);
}

.author-section-heading__rule--hairline {
    height: var(--rule-hairline);
    background: var(--rule);
}

.author-section-heading__meta {
    font: 400 var(--text-meta) / 1 var(--font-sans);
    color: var(--meta);
}

/* --- Author index: columnist cards (3-up) -------------------------------- */

.author-index__columnists {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The card is a box with two kinds of link: the person (avatar, name, counts) and, under them, one
   link per column they write. Links cannot nest, so the person's link is its own element. */
.author-index-card {
    padding: 14px;
    border: var(--rule-hairline) solid var(--rule);
    background: var(--paper);
    color: inherit;
}

.author-index-card:hover,
.author-index-card:focus-within {
    border-color: var(--ink);
}

.author-index-card__person {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.author-index-card__columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1) var(--space-4);
    margin: var(--space-2) 0 0;
    padding: 0;
    list-style: none;
}

.author-index-card__columns a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
    font: 500 var(--text-meta) / 1.3 var(--font-sans);
    color: var(--accent);
    text-decoration: underline;
}

.author-index-card__avatar,
.author-header__avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--mat);
    color: var(--meta);
    font: 700 15px / 1 var(--font-sans);
    overflow: hidden;
    line-height: 0;
}

.author-header__avatar {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

.author-index-card__avatar img,
.author-header__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-index-card__name {
    display: block;
    margin: 0;
    font: 700 15px / 1.25 var(--font-serif);
    color: var(--ink);
}

.author-index-card__meta {
    display: block;
    margin: var(--space-1) 0 0;
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    color: var(--meta);
}

/* --- Author index: contributor name list (3 columns) --------------------- */

/* Two columns on phones (19g: "names 2 columns"), three from 900px (6b).
   14px, not smaller — this list was unreadable at ~9px before. */
.author-index__contributors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 14px / 1.4 var(--font-serif);
    color: var(--ink);
}

.author-index-contributor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    border-bottom: var(--rule-hairline) solid var(--rule);
}

/* The whole row is the tap target: 44px tall (UI audit 2026-11-02, the names
   were 20px high links in a 427-name list). */
.author-index-contributor a {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-height: var(--target-min);
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.author-index-contributor a:hover,
.author-index-contributor a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.author-index-contributor__count {
    flex: none;
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    color: var(--meta);
}

/* The two links at the bottom of Yazarlarımız: all columnists, all writers. */
.author-index__more {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-6);
    margin: var(--space-7) 0 0;
    padding: var(--space-4) 0 0;
    border-top: var(--rule-hairline) solid var(--rule);
}

.author-index__more a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
    font: 600 15px / 1.3 var(--font-sans);
    color: var(--accent);
}

.author-index__locale-note {
    margin: var(--space-4) 0 0;
    font: 400 var(--text-meta) / 1.6 var(--font-sans);
    color: var(--meta);
}

/* Wrapper around the shared site-empty block (empty-states.css), which brings
 * its own vertical padding — hence none here. It only keeps the block on the
 * article column's measure instead of the full author-page width. */
.author-empty {
    margin: 0;
    max-width: var(--measure);
}

/* --- Author page header -------------------------------------------------- */

/* 6c/8d: breadcrumb as its own ruled bar above the header. */
.author-breadcrumb--bar {
    margin: 0;
    padding: 12px 0;
    border-bottom: var(--rule-hairline) solid var(--rule);
}

.author-header__top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

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

/* Phones (8d): name, then the badge on its own line. From 640px (6c) the
   badge sits beside the name. */
.author-header__title-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
}

.author-header .author-header__name {
    font-size: 23px;
    line-height: 1.15;
}

.author-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    border: var(--rule-hairline) solid var(--ink);
    font: 600 var(--text-kicker-small) / 1 var(--font-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
}

.author-header__column-title {
    margin: var(--space-1) 0 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink);
}

.author-header__columns {
    margin: var(--space-2) 0 0;
    font: 400 15px / 1.4 var(--font-serif);
    color: var(--ink);
}

.author-header__columns a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target-min);
    margin-inline-end: var(--space-3);
    font-style: italic;
    color: var(--accent);
}

.author-header__bio {
    margin: var(--space-3) 0 0;
    max-width: 560px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--body);
}

.author-header__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-3) 0 0;
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    color: var(--meta);
}

.author-header__dot {
    color: var(--meta);
}

/* --- Author page body + rail --------------------------------------------- */

.author-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
    padding-top: var(--space-6);
}

.author-layout__main {
    min-width: 0;
}

.author-topic-block {
    margin-bottom: var(--space-5);
    padding: var(--space-4);
    border: var(--rule-hairline) solid var(--rule);
    background: var(--tint);
}

.author-topic-block__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.author-topic-block__label {
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.author-topic-block__rule {
    flex: 1;
    height: var(--rule-hairline);
    background: var(--rule);
}

.author-topic-block__count {
    font: 400 var(--text-meta) / 1 var(--font-sans);
    color: var(--meta);
}

.author-topic-block__chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
}

.author-topic-chip {
    display: inline-flex;
}

.author-topic-chip a {
    display: inline-block;
    padding: 6px 10px;
    border: var(--rule-hairline) solid var(--ink);
    font: 400 var(--text-meta) / 1.3 var(--font-sans);
    color: var(--ink);
    text-decoration: none;
}

.author-topic-chip a:hover,
.author-topic-chip a:focus-visible {
    color: var(--accent);
    border-color: var(--accent);
}

/* "62…1 →" — the rest of the series lives on the topic page. */
.author-topic-chip--more a {
    border-color: var(--rule);
    color: var(--meta);
}

/* 6c's author rows are smaller than the section page's: 96×66 and 16px on
   phones (8d), 110×74 and 18px from 640px. Scoped to this page. */
.author-layout__main .article-list__title {
    font-size: 16px;
    line-height: 1.22;
}

@media (min-width: 640px) {
    .author-layout__main .article-list__media {
        width: 110px;
    }

    .author-layout__main .article-image--feed-row .article-image__mat {
        height: 74px;
    }

    .author-layout__main .article-list__title {
        font-size: 18px;
        line-height: 1.2;
    }

    .author-header__title-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
    }

    .author-header .author-header__name {
        font-size: 32px;
        line-height: 1;
    }
}

.author-flow-heading {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin: var(--space-6) 0 var(--space-4);
}

.author-flow-heading__label {
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.author-flow-heading__rule {
    flex: 1;
    height: var(--rule-strong);
    background: var(--ink);
}

.author-rail {
    padding-top: var(--space-6);
    border-top: var(--rule-strong) solid var(--ink);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.author-rail__title {
    margin: 0 0 var(--space-3);
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--ink);
}

/* 6c/8d: the follow block is an ink box with an accent button. */
.author-rail__follow {
    padding: var(--space-5);
    background: var(--ink);
    color: var(--on-ink);
}

.author-rail__follow .author-rail__title {
    color: var(--on-ink);
}

.author-rail__follow-copy {
    margin: 0 0 var(--space-3);
    font: 400 var(--text-meta) / 1.6 var(--font-sans);
    color: var(--on-ink-secondary);
}

/* White on #1A73A8 is 5.2:1. Shared by the <button> (signed in) and the
   <a> (signed out), so it resets link styling too. */
.author-rail__follow-btn {
    display: block;
    width: 100%;
    padding: var(--space-3);
    border: 0;
    background: var(--accent);
    color: var(--on-ink);
    font: 600 var(--text-ui) / 1.2 var(--font-sans);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.author-rail__follow-btn:hover {
    background: var(--accent-on-dark);
    color: var(--ink);
}

/* Phones (8d): sections and years side by side. */
.author-rail__pair {
    display: flex;
    gap: 26px;
}

.author-rail__pair > section {
    flex: 1;
    min-width: 0;
}

.author-rail__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 13px / 1.8 var(--font-sans);
    color: var(--body);
}

.author-rail__list a {
    color: inherit;
    text-decoration: none;
}

.author-rail__list a:hover,
.author-rail__list a:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.author-rail__years {
    margin: 0;
    padding: 0;
    list-style: none;
    font: 400 13px / 1.8 var(--font-sans);
    color: var(--body);
}

/* Years run inline, " · " between them, and a year never breaks mid-item. */
.author-rail__years li {
    display: inline;
    white-space: nowrap;
}

.author-rail__years li + li::before {
    content: " · ";
}

@media (min-width: 640px) {
    .author-index__columnists {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .author-index__contributors {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .author-header__avatar {
        width: 96px;
        height: 96px;
        font-size: 32px;
    }

    .author-breadcrumb--bar {
        padding: 16px 0;
    }

    /* 6c: the rail is not a box — a 1px rule runs the full height between
       column and rail, so the grid stretches the rail to the column. */
    .author-body {
        grid-template-columns: minmax(0, 1fr) var(--rail-width);
        gap: 0;
    }

    .author-layout__main {
        padding-right: var(--space-6);
    }

    .author-rail {
        margin-top: 0;
        padding: 0 0 0 var(--space-6);
        border-top: 0;
        border-left: var(--rule-hairline) solid var(--rule);
        background: none;
        gap: 20px;
    }

    .author-rail__pair {
        flex-direction: column;
        gap: 20px;
    }
}


/* --- Column page ----------------------------------------------------------- */

.column-header__writers {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3) var(--space-6);
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
}

.column-header__writer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--target-min);
    font: 600 15px / 1.3 var(--font-serif);
    color: var(--ink);
    text-decoration: none;
}

.column-header__writer:hover,
.column-header__writer:focus-visible {
    color: var(--accent);
    text-decoration: underline;
}

.column-header__description {
    margin: var(--space-4) 0 0;
    max-width: var(--measure);
    font: 400 16px / 1.6 var(--font-serif);
    color: var(--body);
}

/* Column page follow button (plan 19): the author rail's blue button, sized to its text. */
.column-header__follow {
    margin-top: var(--space-4);
}

.column-header__follow-btn {
    display: inline-block;
    padding: var(--space-3) var(--space-5);
    border: 0;
    background: var(--accent);
    color: var(--on-ink);
    font: 600 var(--text-ui) / 1.2 var(--font-sans);
    text-decoration: none;
    cursor: pointer;
}

.column-header__follow-btn:hover {
    background: var(--accent-on-dark);
    color: var(--ink);
}
