/* ---------------------------------------------------------------------------
   Homepage — design 4a (desktop, 1280) and 7b (mobile).

   Five zones: editor well, feed, köşe yazarları, and a tinted rail whose
   every block opens with a 2.5px ink rule. Mobile-first; the rail becomes
   bottom blocks below 900px.

   The shared .article-list and .article-image rules moved to articles.css
   (2026-09-13): the author page and search results use them without loading
   this file, and rendered unstyled while they lived here.
   --------------------------------------------------------------------------- */

.homepage-layout {
    max-width: var(--homepage-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.homepage-main {
    min-width: 0;
    padding-bottom: var(--space-8);
}

/* Section header: label, 2.5px rule, optional note or link (4a). */
.homepage-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--space-5);
}

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

/* The .homepage-section-label__narrow / __wide pair that used to live here is
   gone: the feed was its only caller, and its phone/desktop label pair
   ("Gündem" / "Son gelişmeler") was retired when the feed heading became
   "Diğer haberler" — one label short enough for both widths (owner ruling
   2026-09-18, docs/decisions-log.md). Removed with the change that orphaned
   it rather than left behind as dead CSS. */

/* Hairline, not the 2.5px strong rule: the client wants the thinnest line
   after each section heading (backlog #80, 2026-11-26). Same in blocks.css. */
.homepage-section-rule {
    flex: 1;
    height: var(--rule-hairline);
    background: var(--ink);
}

/* Headings the client asked to be blue (backlog #80): "Köşe yazarlarımızdan
   son yazılar", "Diğer haberler", "Haber Arşivi". --accent is the kickers'
   blue and the AA-safe text blue (design-principles §2). */
.homepage-section-label--blue,
.homepage-rail__label--blue,
.homepage-rail__label--blue a {
    color: var(--accent);
}

.homepage-section-note {
    font: 400 var(--text-kicker) / 1 var(--font-sans);
    color: var(--meta);
}

.homepage-section-more {
    font: 400 var(--text-kicker) / 1 var(--font-sans);
    color: var(--accent);
    text-decoration: none;
}

.homepage-section-more:hover {
    text-decoration: underline;
}

.homepage-empty {
    margin: 0;
    padding: var(--space-6) 0;
    font-size: var(--text-lead);
    color: var(--body);
}

/* The members-only badge, as drawn inline after a kicker in 4a. Colour is
   never the only signal: it is colour and text. */
.homepage-badge {
    display: inline-block;
    padding: 3px 7px;
    background: var(--ink);
    color: var(--on-ink);
    font: 600 9.5px / 1 var(--font-sans);
    letter-spacing: 0.06em;
    text-transform: uppercase; /* D2: the msgid is sentence case; casing is CSS. Was `none`, back when the text was literal caps. */
}

/* --- Editor well --------------------------------------------------------- */

.homepage-well {
    padding: var(--space-7) 0 var(--space-6);
    border-bottom: var(--rule-hairline) solid var(--rule);
}

/* Mobile: one swipeable card per item (7b). */
.homepage-well__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.homepage-well__grid::-webkit-scrollbar {
    display: none;
}

/* Lets the secondaries be direct flex children of the scroller on mobile. */
.homepage-well__secondaries {
    display: contents;
}

.homepage-well__lead,
.homepage-well__secondary {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.homepage-well__counter {
    margin: 0 0 var(--space-2);
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--accent);
}

.homepage-well__media {
    display: block;
    line-height: 0;
    text-decoration: none;
}

.homepage-well__caption {
    margin: 7px 0 0;
    font: 400 10px / 1.5 var(--font-sans);
    color: var(--meta);
}

.homepage-well__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
}

/* Category kickers on the homepage are grey (client, backlog #80); the
   article page and the lists keep the blue ones. --meta stays AA on paper. */
.homepage-well__kicker a {
    color: var(--meta);
    text-decoration: none;
}

.homepage-well__title {
    margin: 9px 0 0;
    font-size: var(--text-h2);
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.homepage-well__title a {
    color: var(--ink);
    text-decoration: none;
}

.homepage-well__title a:hover,
.homepage-well__title a:focus-visible {
    color: var(--accent);
}

.homepage-well__excerpt {
    max-width: 620px;
    margin: 13px 0 0;
    font: 400 17px / 1.62 var(--font-serif);
    color: var(--body);
}

.homepage-well__meta {
    margin: 13px 0 0;
    font: 400 12px / 1.5 var(--font-sans);
    color: var(--meta);
}

.homepage-well__secondary .homepage-well__kicker {
    margin-top: 11px;
    font-size: var(--text-kicker-small);
}

.homepage-well__secondary .homepage-well__title {
    margin-top: 7px;
    font-size: 22px;
    line-height: 1.18;
}

.homepage-well__secondary .homepage-well__meta {
    margin-top: 8px;
    font-size: var(--text-meta);
}

/* The dots are the only way to move this carousel other than swiping, and at
 * 390px they were 6px squares 5px apart — far under a thumb (UX audit C7,
 * 2026-09-19). Each button is now a --target-min square hit area and the dot
 * itself is drawn by ::before at its original 6px, so nothing looks bigger.
 * gap is 0 because two neighbouring 44px targets cannot also be 11px apart:
 * the price of a real target is that the dots sit further apart than the
 * design drew them. margin-top drops to 0 because the button's own 19px of
 * padding is now the air the old margin provided. carousel.js still toggles
 * --active on the button, so the active rule reaches the pseudo-element. */
/* The arrows sit either side of the dots on one row (plan 14). Hidden with the
 * dots from 900px up, where the well is not a carousel (see the 900px rule). */
.homepage-well__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.homepage-well__dots {
    display: flex;
    justify-content: center;
    gap: 0;
}

.homepage-well__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--target-min);
    height: var(--target-min);
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    cursor: pointer;
}

.homepage-well__arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.homepage-well__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--target-min);
    height: var(--target-min);
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.homepage-well__dot::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--rule);
}

.homepage-well__dot--active::before {
    background: var(--ink);
}

/* --- Feed --------------------------------------------------------------- */

.homepage-feed {
    padding: var(--space-7) 0 0;
}

.homepage-feed .homepage-section-header {
    margin-bottom: 4px;
}

.homepage-feed .article-list__category {
    color: var(--meta);
}

.homepage-feed__more {
    display: flex;
    justify-content: center;
    margin: 0;
    padding-top: var(--space-6);
}

/* Outlined, as drawn: 1.5px ink, 13px 34px. */
.homepage-feed__more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--target-min);
    padding: 13px 34px;
    border: var(--rule-medium) solid var(--ink);
    color: var(--ink);
    font: 600 var(--text-ui) / 1 var(--font-sans);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.homepage-feed__more-link:hover,
.homepage-feed__more-link:focus-visible {
    background: var(--ink);
    color: var(--on-ink);
}

/* The .article-list rows (plain and wire) live in articles.css: the author
   page and search results render the same include without loading this file. */

/* --- Köşe yazarları (4a) ------------------------------------------------- */

.homepage-columnists {
    padding-top: 34px;
}

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

.homepage-columnist {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

/* Avatars are one of the two places a radius is allowed. */
.homepage-columnist__avatar {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--mat);
    color: var(--meta);
    font: 700 17px / 1 var(--font-serif);
}

.homepage-columnist__avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-columnist__text {
    min-width: 0;
}

.homepage-columnist__title {
    margin: 0;
    font-size: 19px;
    line-height: 1.22;
}

.homepage-columnist__title a {
    color: var(--ink);
    text-decoration: none;
}

.homepage-columnist__title a:hover,
.homepage-columnist__title a:focus-visible {
    color: var(--accent);
}

.homepage-columnist__name {
    margin: 6px 0 0;
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    color: var(--meta);
}

/* The shared .article-image slot rules live in articles.css — search results
   render them without loading this file. */

/* --- Rail (4a) -----------------------------------------------------------
   Mobile: bottom blocks on the tint ground, full bleed. From 900px: a right
   column on tint, 260px, then 340px in the full 1120 layout. */

.homepage-rail {
    margin-inline: calc(var(--gutter) * -1);
    padding: var(--space-6) var(--gutter) var(--space-8);
    background: var(--tint);
}

.homepage-rail > * + * {
    margin-top: 28px;
}

/* Hairline top rule: the client's "thinnest of the horizontal lines" note also covers
   the rail (backlog #80, 2026-11-26). The newsletter box keeps its own frame. */
.homepage-rail__block {
    padding-top: 14px;
    border-top: var(--rule-hairline) solid var(--ink);
}

.homepage-rail__label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font: 700 var(--text-kicker) / 1.3 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink);
}

.homepage-rail__label a {
    color: inherit;
    text-decoration: none;
}

.homepage-rail__label a:hover {
    color: var(--accent);
}

.homepage-rail__label-note {
    font: 400 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0;
    text-transform: none;
    color: var(--meta);
}

.homepage-rail__more {
    margin: 12px 0 0;
    font: 600 12px / 1 var(--font-sans);
}

.homepage-rail__more a {
    color: var(--accent);
    text-decoration: none;
}

.homepage-rail__more a:hover {
    text-decoration: underline;
}

/* Issue block: cover matted on --mat, two half-width buttons. */
.homepage-issue__mat {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding: 16px;
    background: var(--mat);
}

.homepage-issue__cover {
    width: 150px;
}

.homepage-issue .article-image--issue-cover .article-image__mat {
    height: 212px;
    background: transparent;
}

.homepage-issue__cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 212px;
    background: var(--rule);
}

.homepage-issue__cover-number {
    font: 700 var(--text-h3) / 1 var(--font-serif);
    color: var(--meta);
}

.homepage-issue__actions {
    display: flex;
    gap: 9px;
    margin-top: 14px;
}

.homepage-issue__button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: var(--target-min);
    padding: 0 11px;
    font: 600 12px / 1 var(--font-sans);
    text-align: center;
    text-decoration: none;
}

.homepage-issue__button--primary {
    background: var(--ink);
    color: var(--on-ink);
}

.homepage-issue__button--primary:hover {
    background: var(--accent);
}

.homepage-issue__button--secondary {
    border: var(--rule-medium) solid var(--ink);
    color: var(--ink);
}

.homepage-issue__button--secondary:hover {
    background: var(--ink);
    color: var(--on-ink);
}

.homepage-issue__text {
    margin: 11px 0 0;
    font: 400 var(--text-meta) / 1.6 var(--font-sans);
    color: var(--body);
}

/* Newsletter on ink, opened by a 2.5px accent rule rather than the ink one
   (an ink rule on an ink block is invisible). White on #1A73A8 is 5.2:1. */
.homepage-newsletter {
    padding: 20px;
    background: var(--ink);
    border-top: var(--rule-strong) solid var(--accent);
    color: var(--on-ink);
}

.homepage-newsletter__label {
    margin: 0;
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--on-ink-breadcrumb);
}

.homepage-newsletter__title {
    margin: 9px 0 0;
    font-size: 25px;
    line-height: 1.2;
    color: var(--on-ink);
}

.homepage-newsletter__text {
    margin: 8px 0 0;
    font: 400 var(--text-meta) / 1.6 var(--font-sans);
    color: var(--on-ink-secondary);
}

.homepage-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 14px 0 0;
}

.homepage-newsletter__input {
    height: var(--target-min);
    padding: 0 12px;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
}

.homepage-newsletter__input::placeholder {
    color: var(--meta);
}

/* 4a draws this field at 12px text; the build keeps tokens.css's 16px input
   floor at every width instead — a 900px+ viewport is often an iPad, and iOS
   zooms on focus of any smaller text field. Only the height follows 4a. */
@media (min-width: 900px) {
    .homepage-newsletter__input {
        height: 40px;
    }
}

.homepage-newsletter__cta {
    min-height: var(--target-min);
    padding: 0 12px;
    border: 0;
    background: var(--accent);
    color: var(--on-ink);
    font: 600 12px / 1 var(--font-sans);
    cursor: pointer;
}

.homepage-newsletter__cta:hover {
    background: var(--accent-on-dark);
    color: var(--ink);
}

/* Haber Arşivi list — set like 4a's numbered list, without the numbers. */
.homepage-rail-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.homepage-rail-list__item {
    padding: 11px 0;
    border-bottom: var(--rule-hairline) solid var(--rule);
}

.homepage-rail-list__item:last-child {
    border-bottom: 0;
}

.homepage-rail-list__item a {
    font: 700 16px / 1.25 var(--font-serif);
    color: var(--ink);
    text-decoration: none;
}

.homepage-rail-list__item a:hover {
    color: var(--accent);
}

/* ---------------------------------------------------------------------------
   640px — wire rows gain the date column and the 152×96 image; columnists go
   three-up.
   --------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .homepage-columnists__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }
}

/* ---------------------------------------------------------------------------
   900px — the rail returns as a right column. The well shows the lead full
   width with its secondaries two-up beneath: at this width a 294px column
   beside the lead would squeeze a 40px headline into ~230px.
   --------------------------------------------------------------------------- */

@media (min-width: 900px) {
    .homepage-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--rail-width);
        align-items: stretch;
    }

    .homepage-main {
        padding-inline-end: var(--space-8);
        border-inline-end: var(--rule-hairline) solid var(--rule);
    }

    .homepage-rail {
        margin-inline: 0;
        padding: var(--space-7) var(--space-6) var(--space-8);
    }

    .homepage-well__grid {
        display: block;
        overflow: visible;
    }

    .homepage-well__secondaries {
        display: flex;
        gap: 20px;
        margin-top: var(--space-6);
        padding-top: var(--space-6);
        border-top: var(--rule-hairline) solid var(--rule);
    }

    .homepage-well__secondary {
        flex: 1 1 0;
    }

    .homepage-well__counter,
    .homepage-well__nav {
        display: none;
    }

    .homepage-well__lead .homepage-well__title {
        font-size: 34px;
        line-height: 1.09;
    }

    .article-image--well-lead .article-image__mat {
        --frame-h: 420px;
        height: var(--frame-h);
    }

    /* Portrait lead (design §3 rule 5): full-height beside the headline
       instead of the landscape band above it. First-cut numbers, not a
       design spec value — the design text names the two arrangements but
       gives no pixel widths; adjust once real uploaded photos show whether
       280px reads too narrow or too wide. */
    .homepage-well__lead--portrait .homepage-well__lead-row {
        display: flex;
        align-items: flex-start;
        gap: 28px;
    }

    .homepage-well__lead--portrait .homepage-well__lead-media-col {
        /* A percentage, not a fixed px width: at 1100px+ the well puts the
           secondaries column beside the lead too (below), so the lead's own
           share of the row shrinks from ~full-width to ~1.55fr — a fixed
           280px would leave almost nothing for the headline at that width. */
        flex: 0 0 38%;
        max-width: 300px;
        min-width: 0;
    }

    .homepage-well__lead--portrait .homepage-well__lead-body {
        flex: 1 1 0;
        min-width: 0;
    }

    .homepage-well__lead--portrait .article-image--well-lead-portrait .article-image__mat {
        height: 420px;
    }

    .homepage-well__lead--portrait .homepage-well__title {
        margin-top: 0;
    }
}

/* ---------------------------------------------------------------------------
   1100px — the drawn 4a layout: 340px rail, lead at flex 1.55 beside a 294px
   column of secondaries, 40px lead headline.
   --------------------------------------------------------------------------- */

@media (min-width: 1100px) {
    .homepage-layout {
        grid-template-columns: minmax(0, 1fr) var(--rail-width-wide);
    }

    .homepage-rail {
        padding: 26px 30px 30px;
    }

    .homepage-well__grid {
        display: flex;
        gap: 26px;
    }

    .homepage-well__lead {
        flex: 1.55 1 0;
    }

    .homepage-well__secondaries {
        flex: none;
        flex-direction: column;
        width: 294px;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .homepage-well__secondary {
        flex: none;
    }

    .homepage-well__secondary:not(:last-child) {
        padding-bottom: 20px;
        border-bottom: var(--rule-hairline) solid var(--rule);
    }

    .homepage-well__lead .homepage-well__title {
        font-size: 40px;
    }
}

/* Staff overlay (design 2c). Only in HTML when can_curate_homepage is set. */
.homepage-curate-banner {
    max-width: var(--homepage-max);
    margin: 0 auto var(--space-4);
    padding: 10px var(--gutter);
    background: var(--ink);
    color: var(--paper);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.homepage-curate-banner__label {
    margin: 0;
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.homepage-curate-banner__note {
    margin: 0;
    font: 400 var(--text-kicker) / 1.4 var(--font-sans);
    opacity: 0.75;
}

/* Pushed to the far end so the banner reads left-to-right as "what mode you
 * are in" then "where to manage it" (UX audit A9). The banner carries .on-ink
 * in the template, which is what swaps the focus ring to the colour that is
 * legible on this ground (tokens.css). */
.homepage-curate-banner__link {
    margin-left: auto;
    font: 600 var(--text-kicker) / 1.4 var(--font-sans);
    color: var(--paper);
    text-decoration: underline;
}

.homepage-curate-banner__reader-toggle {
    margin: 0;
}

.homepage-curate-banner__reader-toggle-button {
    font: 600 var(--text-kicker) / 1.4 var(--font-sans);
    color: var(--paper);
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--paper) 45%, transparent);
    border-radius: 2px;
    padding: 4px 10px;
    cursor: pointer;
}

.homepage-reader-mode-exit {
    position: fixed;
    right: var(--gutter);
    bottom: var(--space-4);
    z-index: 20;
    margin: 0;
}

.homepage-reader-mode-exit__button {
    font: 600 var(--text-kicker) / 1.4 var(--font-sans);
    color: var(--paper);
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 2px;
    padding: 8px 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
}

.homepage-curate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: var(--rule-hairline) solid var(--accent);
}

.homepage-curate__meta,
.homepage-curate__state {
    margin: 0;
    font: 400 var(--text-kicker) / 1.4 var(--font-sans);
    color: var(--accent);
}

.homepage-curate__btn {
    min-height: 44px;
    padding: 0 12px;
    border: var(--rule-strong) solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    cursor: pointer;
}

.homepage-curate__btn:hover {
    background: var(--tint);
}

.homepage-curate__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.article-list__item--hidden {
    opacity: 0.65;
}

/* --- Staff curate rail --------------------------------------------------
   The per-row gizle/sabitle controls used to render as a full-width strip
   under each row with an accent rule above it. That added ~60px and a second
   horizontal line to every row in the feed and broke its rhythm (owner,
   2026-09-19). From 640px up they move into the row's left rail instead.

   Two cases, because only wire rows have a date column:

   - wire rows (Turkish homepage): the 64px date column is empty below the
     date, so the controls drop into that dead space. The link keeps spanning
     both grid columns, so the reader's row is unchanged — the rail only
     overlaps space nothing was using.
   - non-wire rows (Caucasian homepage feed, which draws no date column): the
     rail is a real first column and the row shifts right by it, for staff.

   Below 640px .article-list__date is display:none, so there is no column to
   sit in and the controls keep the stacked-under-the-row form above.

   These rules live here, not in articles.css beside .article-list, because
   they have to override .homepage-curate at equal specificity and homepage.css
   is the later stylesheet. Only the two homepage templates load it, and only
   they ever set can_curate_homepage. */
@media (min-width: 640px) {
    .article-list__item--curate {
        display: grid;
        grid-template-columns: 64px 1fr;
        column-gap: var(--space-3);
    }

    .article-list__item--curate .article-list__link {
        grid-area: 1 / 2 / 2 / 3;
    }

    /* Wire rows draw their own 64px date column inside the link, so the link
       spans the whole grid and the rail overlaps column 1 instead of pushing
       the row across. The 64px above must stay equal to articles.css's
       .article-list__date width or the rail stops lining up under the date. */
    .article-list--wire .article-list__item--curate .article-list__link {
        grid-area: 1 / 1 / 2 / 3;
    }

    .homepage-curate--feed {
        grid-area: 1 / 1 / 2 / 2;
        align-self: start;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        margin: var(--space-4) 0 0;
        padding: 0;
        border-top: 0;
    }

    /* 20px of row padding + two lines of date type (today's rows print the
       time on a second line) + 8px of air. Sized for two lines so the buttons
       hold one x-position down the column instead of stepping in and out. */
    .article-list--wire .homepage-curate--feed {
        margin-top: 62px;
    }

    /* 32px, under the 44px floor: that floor is a phone rule (see base.css on
       the masthead bar) and this rail only exists from 640px up, for staff, on
       a pointer. Two 44px buttons stacked in a 64px column would out-weigh the
       row they annotate. */
    /* overflow-wrap, and a line-height the base rule sets to 1: the Caucasian
       feed translates "gizle" to a single unbreakable word much wider than the
       rail (ady: "гъэкӀэрахъуэ"), which otherwise spills out of the border. */
    .homepage-curate--feed .homepage-curate__btn {
        width: 100%;
        min-height: 32px;
        padding: 5px 6px;
        font-size: var(--text-kicker-small);
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .homepage-curate--feed .homepage-curate__state {
        font-size: var(--text-kicker-small);
        line-height: 1.3;
    }
}

@media print {
    .homepage-curate-banner,
    .homepage-curate {
        display: none !important;
    }
}

/* The paper's name above its latest issue: the rail shows one block per paper
   ("Jineps", "Anadilde Jineps"), plan 11a. */
.homepage-issue__paper {
    margin: 0 0 var(--space-1);
    font: 700 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    color: var(--accent);
}

/* Phone touch targets (design-principles section 6: hit targets at least 44px).
   Found under 44px by the 2026-11-02 UI audit at 390px; from 900px the old
   compact sizes stand (pointer, and the utility bar is fixed at 34px there). */
@media (max-width: 899px) {
    .homepage-section-more {
        display: inline-flex;
        align-items: center;
        min-height: var(--target-min);
    }
}

/* "değiştir" is a link (it opens the picker page) styled like its neighbouring buttons. */
a.homepage-curate__btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

/* The one-step replace picker (articles/homepage_curate_replace.html), editors only. */
.homepage-replace__search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 16px 0 24px;
}

.homepage-replace__search input {
    flex: 1 1 12rem;
    min-height: var(--input-height);
    padding: 0 12px;
    border: var(--rule-strong) solid var(--ink);
    font: inherit;
}

.homepage-replace__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.homepage-replace__item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-top: var(--rule-hairline) solid var(--rule);
}

.homepage-replace__date {
    color: var(--meta);
    font-family: var(--font-sans);
    font-size: var(--text-kicker);
}

/* Pinning into a block (plan 06b), editors only. The feed row's "sabitle" is a disclosure holding the
   block and position choice: in the 64px curate rail it opens as a panel over the row, not inside the
   rail. The panel is not drawn in print (.homepage-curate is hidden there; the panel is inside it). */
.homepage-curate__pin {
    position: relative;
}

.homepage-curate__pin > summary {
    display: inline-flex;
    align-items: center;
    list-style: none;
    cursor: pointer;
}

.homepage-curate__pin > summary::-webkit-details-marker {
    display: none;
}

.homepage-curate__pin-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    padding: 12px;
    border: var(--rule-strong) solid var(--ink);
    background: var(--paper);
}

.homepage-curate__pin-form label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font: 400 var(--text-kicker) / 1.3 var(--font-sans);
}

.homepage-curate__pin-form select {
    min-height: 44px;
    font: inherit;
}

@media (min-width: 640px) {
    .homepage-curate--feed .homepage-curate__pin > summary {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .homepage-curate--feed .homepage-curate__pin-form {
        position: absolute;
        z-index: 5;
        left: 0;
        width: 16rem;
        box-shadow: 0 2px 8px rgb(0 0 0 / 0.15);
    }
}

/* One list of a block's positions under blocks that have no cards of their own to hold the controls. */
.homepage-curate-positions {
    margin: 0 0 var(--space-4);
    font: 400 var(--text-kicker) / 1.4 var(--font-sans);
}

.homepage-curate-positions > summary {
    cursor: pointer;
    color: var(--accent);
}

.homepage-curate-positions__list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.homepage-curate-positions__item {
    padding: 8px 0;
    border-top: var(--rule-hairline) solid var(--accent);
}

.homepage-curate-positions__title {
    margin: 0;
    font-weight: 600;
}

.homepage-curate-positions .homepage-curate {
    margin-top: 6px;
    padding-top: 0;
    border-top: 0;
}

@media print {
    .homepage-curate-positions {
        display: none !important;
    }
}
