/* ---------------------------------------------------------------------------
   Site chrome — utility bar, ink masthead band, nav, footer, cookie notice.

   Every colour, type step and gap here is a token from tokens.css. If a value
   needs changing, change it there; a literal hex or px in this file is a bug
   unless a comment says why. The reset, focus ring, skip link and
   .visually-hidden all live in tokens.css too — they used to be duplicated
   here.

   Mobile-first: the base rules are the < 640px layout and the media queries
   below add the wider ends. The desktop comps are the wide end of one layout,
   not the canonical design.
   --------------------------------------------------------------------------- */

.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------------------------------------------------------------------
   Utility bar — ink, 34px (4a, 4b, 5a, 6a, 7b). Owner ruling 2026-09-13
   reversed the earlier light strip.
   --------------------------------------------------------------------------- */

.site-utility {
    background: var(--ink);
    color: var(--on-ink);
}

.site-utility__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font: 400 var(--text-kicker) / 1.4 var(--font-sans);
}

.site-utility__strapline {
    margin: 0;
    flex: 1 1 auto;
    letter-spacing: 0.04em;
    color: var(--on-ink-tertiary);
}

/* Homepage only (4a): "Facebook 12,4B · Instagram 8,1B". Hidden below 900px,
   where the account links need the room. */
.site-utility__social {
    display: none;
    margin: 0;
    flex: none;
    white-space: nowrap;
    color: var(--on-ink-tertiary);
}

.site-utility__account {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    min-width: 0;
}

.site-utility__link {
    font-weight: 500;
    color: var(--on-ink);
    text-decoration: none;
    white-space: nowrap;
}

.site-utility__link:hover {
    color: var(--accent-on-dark);
    text-decoration: underline;
}

/* 4a: "Yönetim Paneli" in accent-on-dark, "Çıkış" dimmed. */
.site-utility__link--admin {
    color: var(--accent-on-dark);
}

.site-utility__link--quiet {
    color: var(--on-ink-tertiary);
}

.site-utility__greeting {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: var(--on-ink);
}

.site-utility__divider {
    flex: none;
    width: 1px;
    align-self: stretch;
    min-height: 1em;
    background: var(--rule-on-ink);
}

.site-utility .lang-switcher__toggle {
    color: var(--on-ink);
    letter-spacing: 0.06em;
}

.site-utility .lang-switcher__toggle:hover {
    color: var(--accent-on-dark);
}

/* The strapline is the first thing to go when the bar gets tight: the account
   links are functional, the strapline is not. */
@media (max-width: 639px) {
    .site-utility__strapline {
        display: none;
    }
}

/* ---------------------------------------------------------------------------
   Masthead — the ink band (design id 14a). No bottom rule: the 2.5px ink rule
   the lighter masthead options carried is invisible against this ground.
   --------------------------------------------------------------------------- */

.site-header {
    background: var(--ink);
    color: var(--on-ink);
}

.site-header__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-inline: var(--gutter);
}

.site-header__masthead {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-3);
}

/* Wordmark above its strapline, as drawn in 14a — the emblem that used to sit
   beside them is gone, because the horse-head J inside the wordmark *is* the
   mark and showing both duplicated it. */
.site-header__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

/*
 * The wordmark is an image, not type — the horse-head J is part of the
 * letterform. Sized by height so the intrinsic 2.651 aspect drives the width;
 * the width/height attributes on the tag reserve the right box before the
 * file loads, so the masthead does not reflow.
 *
 * No plate and no blend mode: the on-dark file is white art with real
 * transparency. The design record's warning against filtering the emblem
 * (brightness(0) invert(1) flattens the rectangle to white; screen removes
 * dark pixels, not light ones) described the OLD fully-opaque PNG and does
 * not apply to these files — but it still applies to
 * jinepsNewAmblemNegatif*.png, which are opaque and must not be used here.
 *
 * Both variants are generated from the client's Pozitif files by masking a
 * flat colour with the source alpha, so the white and ink art are the same
 * geometry rather than two drawings that can drift apart.
 */
.site-header__wordmark {
    display: block;
    flex: none;
    width: auto;
    height: 32px;
}

/* The one place accent-on-dark carries running text rather than a link or a
   state. It reads on ink; #1A73A8 would not. Hidden below 640px, where the
   masthead row has only 390px for hamburger, wordmark and search. */
.site-header__tagline {
    display: none;
    font: 400 var(--text-meta) / 1.4 var(--font-sans);
    letter-spacing: 0.02em;
    color: var(--accent-on-dark);
}

/* "2005'ten beri…" on its own line under the paper's motto, in white (client,
   backlog #80, 2026-11-26). */
.site-header__tagline-name,
.site-header__tagline-since {
    display: block;
}

.site-header__tagline-since {
    color: var(--on-ink);
}

/* Homepage-only masthead furniture (4a): the dateline and the membership
   button. Both appear from 900px; the phone masthead has no room for them. */
.site-header__dateline {
    display: none;
    flex: none;
    margin: 0;
    text-align: right;
    font: 400 var(--text-kicker) / 1.5 var(--font-sans);
    color: var(--on-ink-secondary);
}

.site-header__dateline-issue {
    color: var(--on-ink-tertiary);
}

/* White on #1A73A8 is 5.2:1. */
.site-header__cta {
    display: none;
    flex: none;
    padding: 11px 20px;
    background: var(--accent);
    color: var(--on-ink);
    font: 600 12px / 1 var(--font-sans);
    letter-spacing: 0.02em;
    text-decoration: none;
}

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

.site-header__search-form {
    flex: none;
    display: flex;
    align-items: center;
}

.site-header__search-field-icon {
    display: none;
}

/* Under 900px the field collapses and only the magnifier shows — the masthead
   row has the hamburger, wordmark and search to fit into 390px. */
.site-header__search-input {
    display: none;
    width: 9rem;
    height: var(--target-min);
    padding-inline: var(--space-2);
    border: var(--rule-hairline) solid var(--rule-on-ink-strong);
    background: transparent;
    color: var(--on-ink);
}

.site-header__search-input::placeholder {
    color: var(--on-ink-tertiary);
}

/* Search submit occupies the old membership-CTA slot on desktop (owner,
   2026-09-30). Mobile keeps the icon-only control; the label is the
   accessible name either way. */
.site-header__search-submit.site-header__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--target-min);
    height: var(--target-min);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--on-ink);
    cursor: pointer;
}

.site-header__search-submit.site-header__cta:hover {
    color: var(--accent-on-dark);
    background: transparent;
}

.site-header__search-submit-label {
    display: none;
}

/* Hamburger — white bars on the ink band. 44px target. */
.site-header__nav-toggle {
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: var(--target-min);
    height: var(--target-min);
    padding: 0 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.site-header__nav-toggle-bar {
    display: block;
    height: 2px;
    background: var(--on-ink);
}

.site-header__nav-toggle:hover .site-header__nav-toggle-bar {
    background: var(--accent-on-dark);
}

/* ---------------------------------------------------------------------------
   Nav. Below 900px it is a drawer, toggled by the hamburger; from 900px up it
   is the flat bar drawn in 14a.
   --------------------------------------------------------------------------- */

.site-header__nav {
    display: none;
    padding-bottom: var(--space-2);
    border-top: var(--rule-hairline) solid var(--rule-on-ink);
}

.site-header__nav--open {
    display: block;
}

.site-header__nav-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: var(--rule-hairline) solid var(--rule-on-ink);
}

.site-header__nav-account .site-utility__link,
.site-header__nav-account .site-utility__greeting {
    color: var(--on-ink);
}

.site-header__nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__nav-link {
    display: block;
    padding-block: var(--space-3);
    font: 600 var(--text-ui) / 1 var(--font-sans);
    color: var(--on-ink-secondary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.site-header__nav-link:hover {
    color: var(--on-ink);
}

.site-header__nav-link--active {
    color: var(--on-ink);
    border-bottom-color: var(--accent-on-dark);
}

.site-header__nav-link--archive {
    color: var(--on-ink-secondary);
}

.site-header__nav-link--egazete {
    color: var(--accent-on-dark);
}

/* In the drawer the overflow menu is redundant — nothing overflows a vertical
   list — so it is hidden and the full list shows in the bar instead. */
.site-header__overflow {
    display: none;
}

/* site-base.js sets `hidden` when nothing overflows. From 900px the
   `.site-header__overflow` rule is `display: block`, which beats the browser's
   own [hidden] style — without this, "Daha ▼" stayed visible with an empty menu. */
.site-header__overflow[hidden] {
    display: none;
}

.site-header__overflow-summary {
    display: block;
    padding-block: var(--space-3);
    font: 600 var(--text-ui) / 1 var(--font-sans);
    color: var(--on-ink-secondary);
    cursor: pointer;
    list-style: none;
}

.site-header__overflow-summary::-webkit-details-marker {
    display: none;
}

.site-header__overflow[open] .site-header__overflow-summary {
    color: var(--on-ink);
}

/* Dropdown panels ("Daha ▼" and nav groups) are paper, as 16a draws them —
   a dropdown is one of the two places README allows a shadow. */
.site-header__overflow-list {
    position: absolute;
    right: 0;
    z-index: 50;
    margin: 0;
    padding: var(--space-2) 0;
    list-style: none;
    min-width: 200px;
    background: var(--paper);
    border: var(--rule-hairline) solid var(--rule);
    box-shadow: var(--shadow-dropdown);
}

.site-header__overflow-link {
    display: block;
    padding: var(--space-2) var(--space-5);
    font: 600 var(--text-ui) / 1 var(--font-sans);
    color: var(--body);
    text-decoration: none;
    white-space: nowrap;
}

.site-header__overflow-link:hover {
    color: var(--accent);
}

.site-header__overflow-sublist {
    margin: 0;
    padding: 0 0 0 var(--space-4);
    list-style: none;
}

.site-header__overflow-sublist .site-header__overflow-link {
    font-weight: 400;
}

/* The panels sit on paper inside the ink band, so the focus ring switches
   back from accent-on-dark to accent. */
.site-header__overflow-list :focus-visible,
.site-header__group-list :focus-visible {
    outline-color: var(--accent);
}

/* --- Nav groups (16a) — a <details> per category that has nav children.
   In the drawer the list opens inline under its heading; from 900px it is
   a dropdown panel (see the media query). */
.site-header__group-summary {
    list-style: none;
    cursor: pointer;
}

.site-header__group-summary::-webkit-details-marker {
    display: none;
}

.site-header__group-list {
    margin: 0;
    padding: 0 0 var(--space-2) var(--space-4);
    list-style: none;
}

.site-header__group-link {
    display: block;
    padding-block: var(--space-2);
    font: 600 var(--text-ui) / 1.2 var(--font-sans);
    color: var(--on-ink-secondary);
    text-decoration: none;
}

.site-header__group-link:hover,
.site-header__group-link[aria-current="page"] {
    color: var(--accent-on-dark);
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
}

/* A word or address with no break opportunity (a long title word in Turkish or
   Cyrillic, a pasted URL in a paragraph) must wrap inside the column, not
   widen the whole page into a sideways scroll. `anywhere`, unlike
   `break-word`, also lowers the min-content width, which matters because
   .site-main is a flex item. Table cells are left out on purpose: tables
   scroll on their own and a column must not break mid-word.
   Found by the 2026-11-02 UI audit at 390px and 320px. */
.site-main :is(h1, h2, h3, h4, p, li, a, figcaption, blockquote, dd) {
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------------------
   Locale switcher — the compact TR ▼ control in the utility bar. It sits on
   paper there, not on ink, so it takes the light palette.
   --------------------------------------------------------------------------- */

.lang-switcher {
    position: relative;
    flex: none;
}

.lang-switcher__toggle {
    min-height: var(--target-min);
    padding-inline: var(--space-2);
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    color: var(--ink);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.lang-switcher__toggle:hover {
    color: var(--accent);
}

.lang-switcher__panel {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 50;
    min-width: 5.5rem;
    padding-block: var(--space-1);
    background: var(--paper);
    border: var(--rule-hairline) solid var(--rule);
    box-shadow: var(--shadow-dropdown);
}

.lang-switcher__form {
    margin: 0;
}

.lang-switcher__option {
    display: block;
    width: 100%;
    min-height: var(--target-min);
    padding-inline: var(--space-4);
    text-align: start;
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    color: var(--body);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.lang-switcher__option:hover {
    color: var(--accent);
    background: var(--tint);
}

/* ---------------------------------------------------------------------------
   Footer (design id 14d) — banner slot on tint, then the ink block.
   --------------------------------------------------------------------------- */

.site-footer {
    margin-top: auto;
}

/* The tint band sits on .banner-list, which banner_list.html renders only when
   a banner exists. Do not move it back to .site-footer__banner:not(:empty) —
   the {% show_banners %} include leaves whitespace in the wrapper, so :empty
   never matched and an empty tint strip showed above every footer. */
.site-footer__banner .banner-list {
    background: var(--tint);
    border-bottom: var(--rule-hairline) solid var(--rule);
    padding-block: var(--space-5);
}

.site-footer__body {
    background: var(--ink);
    color: var(--on-ink);
}

.site-footer__inner {
    max-width: var(--page-max);
    margin: 0 auto;
    padding-block: var(--space-8) var(--space-6);
    padding-inline: var(--gutter);
}

.site-footer__top {
    display: flex;
    flex-direction: column;
    gap: var(--space-7);
    padding-bottom: var(--space-7);
    border-bottom: var(--rule-hairline) solid var(--rule-on-ink);
}

.site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
}

/* Same generated wordmark as the masthead, one step smaller. */
.site-footer__wordmark {
    display: block;
    flex: none;
    width: auto;
    height: 26px;
}

.site-footer__tagline {
    display: block;
    font: 400 var(--text-kicker-small) / 1.4 var(--font-sans);
    color: var(--accent-on-dark);
    margin-top: 4px;
}

.site-footer__blurb {
    margin: var(--space-4) 0 0;
    font: 400 13.5px / 1.7 var(--font-serif);
    color: var(--on-ink-secondary);
}

.site-footer__contact {
    margin: var(--space-4) 0 0;
    font: 400 12px / 1.8 var(--font-sans);
    color: var(--on-ink-tertiary);
}

/* Link columns. One column on a phone, three from 640px up. */
.site-footer__columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-7);
}

.site-footer__column-title {
    margin: 0;
    font: 700 var(--text-kicker-small) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    color: var(--accent-on-dark);
    text-transform: uppercase; /* D2: the msgid is sentence case; casing is CSS */
}

.site-footer__links {
    margin: var(--space-3) 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__links li {
    margin: 0;
}

.site-footer__link {
    display: inline-block;
    padding-block: 5px;
    font: 400 13px / 1.6 var(--font-sans);
    color: var(--on-ink-secondary);
    text-decoration: none;
}

.site-footer__link:hover {
    color: var(--accent-on-dark);
    text-decoration: underline;
}

/* The native-language links POST to set_language, so each one is a button in
   a form. Stripped back to look and size exactly like the anchors beside it —
   a reader should not be able to tell which links are forms. */
.site-footer__lang-form {
    margin: 0;
}

.site-footer__lang-button {
    background: transparent;
    border: 0;
    padding-inline: 0;
    text-align: start;
    cursor: pointer;
}

.site-footer__newsletter {
    border-top: var(--rule-hairline) solid var(--rule-on-ink);
    padding-top: var(--space-6);
}

.site-footer__newsletter-text {
    margin: var(--space-3) 0 0;
    font: 400 13.5px / 1.65 var(--font-serif);
    color: var(--on-ink-secondary);
}

/* The one place --brand carries a filled surface. Ink text on it, never
   white: #212529 on #4DB2EC is 6.5:1, white on #4DB2EC is 2.4:1. */
.site-footer__newsletter-form {
    margin-top: var(--space-3);
}

.site-footer__newsletter-input {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 0 var(--space-3);
    border: 0;
    font: 400 var(--text-ui) / 1 var(--font-sans);
    color: var(--ink);
    background: var(--paper);
}

.site-footer__newsletter-cta {
    display: block;
    width: 100%;
    margin-top: var(--space-2);
    padding: 13px;
    text-align: center;
    background: var(--brand);
    color: var(--ink);
    font: 600 var(--text-ui) / 1 var(--font-sans);
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.site-footer__newsletter-cta:hover {
    background: var(--accent-on-dark);
}

.site-footer__inline-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.site-footer__inline-sep {
    color: var(--on-ink-tertiary);
}

/* The native disclosure marker is hidden at every width and replaced by the
   ▼/▲ below, which the 640px block then drops — at desktop these columns are
   held open by site-base.js, so any marker there is an affordance that does
   nothing (UX audit C6). Three ways to hide it because they cover different
   browsers: `list-style` is the modern one, `::-webkit-details-marker` is
   Safari's, and `display: flex` takes <summary> off `display: list-item`
   altogether.

   Flex is also what keeps the chevron on the title's line: the title is a
   block-level <h2> inside the <summary> (see base.html), and in normal flow
   the ::after would drop below it. */
.site-footer__accordion > summary {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
    list-style: none;
    cursor: pointer;
}

.site-footer__accordion > summary::-webkit-details-marker {
    display: none;
}

.site-footer__accordion > summary::after {
    content: "▼";
    font-size: 10px;
    color: var(--on-ink-tertiary);
}

.site-footer__accordion[open] > summary::after {
    content: "▲";
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    min-height: var(--target-min);
    padding: 8px 12px;
    border: var(--rule-hairline) solid var(--rule-on-ink-strong);
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    color: var(--on-ink);
    text-decoration: none;
}

.site-footer__social-link--text {
    min-height: auto;
    padding: 8px 12px;
    font: 600 11px / 1 var(--font-sans);
}

.site-footer__social-link svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.site-footer__social-count {
    color: var(--on-ink-tertiary);
}

.site-footer__social-link:hover {
    border-color: var(--accent-on-dark);
    color: var(--accent-on-dark);
}

.site-footer__social-link--inactive {
    cursor: default;
}

.site-footer__social-link--inactive:hover {
    border-color: var(--rule-on-ink-strong);
    color: var(--on-ink);
}

.site-footer__legal {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding-top: var(--space-5);
    font: 400 var(--text-meta) / 1.6 var(--font-sans);
}

.site-footer__legal-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.site-footer__copyright,
.site-footer__rights {
    margin: 0;
    color: var(--on-ink-tertiary);
}

.site-footer__rights {
    max-width: 62ch;
}

.site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---------------------------------------------------------------------------
   Cookie notice. Informational, one dismiss button — see the comment in
   base.html for why the design's two-button consent bar is not adopted yet.
   --------------------------------------------------------------------------- */

.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--gutter);
    background: var(--tint);
    border-top: var(--rule-hairline) solid var(--rule);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent__text {
    flex: 1 1 16rem;
    margin: 0;
    font: 400 var(--text-ui) / 1.6 var(--font-sans);
    color: var(--body);
}

.cookie-consent__text a {
    color: var(--accent);
}

.cookie-consent__dismiss {
    flex: none;
    min-height: var(--target-min);
    padding: 11px 16px;
    font: 600 12px / 1 var(--font-sans);
    color: var(--ink);
    background: transparent;
    border: var(--rule-medium) solid var(--ink);
    cursor: pointer;
}

.cookie-consent__dismiss:hover {
    color: var(--paper);
    background: var(--ink);
}

/* ---------------------------------------------------------------------------
   640px — link columns go 3-up, the masthead strapline appears.
   --------------------------------------------------------------------------- */

@media (min-width: 640px) {
    .site-header__tagline {
        display: block;
    }

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

    /* 14d / 19g: accordions are expanded columns from 640px up. */
    .site-footer__accordion > summary {
        cursor: default;
        pointer-events: none;
    }

    /* Both selectors, and the [open] one is not redundant: site-base.js sets
       `open` on every column at this width, and `.site-footer__accordion[open]
       > summary::after` outranks the plain one on specificity, so hiding only
       the plain one left the ▲ on screen at desktop — exactly the affordance
       that does nothing there (UX audit C6; the rule had been written since
       2026-09-14 and never worked). */
    .site-footer__accordion > summary::after,
    .site-footer__accordion[open] > summary::after {
        content: none;
    }
}

/* ---------------------------------------------------------------------------
   900px — the drawer becomes the flat bar from 14a and the search field and
   archive CTA appear. This is also where the nav overflow starts mattering.
   --------------------------------------------------------------------------- */

@media (min-width: 900px) {
    .site-header__masthead {
        padding-block: var(--space-6) 0;
        gap: var(--space-4);
    }

    .site-header__nav-toggle {
        display: none;
    }

    .site-header__wordmark {
        height: 48px;
    }

    .site-utility__social,
    .site-header__dateline {
        display: block;
    }

    /* The underlined search field from 4a: a bottom rule only, 230px with
       the magnifier. Replaces the boxed input the build had. */
    .site-header__search-form {
        width: auto;
        max-width: 22rem;
        border-bottom: var(--rule-medium) solid var(--rule-on-ink-strong);
        gap: var(--space-2);
    }

    .site-header__search-field-icon {
        display: block;
        flex: none;
        color: var(--on-ink);
    }

    .site-header__search-input {
        display: block;
        flex: 1 1 auto;
        min-width: 0;
        width: 230px;
        height: 36px;
        padding: 0 2px;
        border: 0;
        font-family: var(--font-sans);
    }

    /* Orange Ara button in the old Üyelik & Bağış slot — same size as
       .site-header__cta, no second magnifier (the field already has one). */
    .site-header__search-submit.site-header__cta {
        width: auto;
        height: auto;
        padding: 11px 20px;
        background: var(--accent);
        color: var(--on-ink);
        font: 600 12px / 1 var(--font-sans);
        letter-spacing: 0.02em;
        text-decoration: none;
    }

    .site-header__search-submit.site-header__cta:hover {
        background: var(--accent-on-dark);
        color: var(--ink);
    }

    .site-header__search-submit-icon {
        display: none;
    }

    .site-header__search-submit-label {
        display: inline;
    }

    .site-header__search-input::placeholder {
        color: var(--on-ink-breadcrumb);
    }

    /*
     * The nav bar. nowrap + overflow:hidden enforces "never wraps to a second
     * line and never sags" when JS is off: an item that does not fit is
     * clipped, and "Daha ▼" lists everything, so nothing is unreachable.
     *
     * With JS (owner ruling 2026-09-12), site-base.js hides whole items that
     * do not fit, shows only their entries in "Daha ▼", hides "Daha ▼" when
     * nothing overflows, and adds .site-header__nav--measured — which lifts
     * overflow:hidden so group dropdown panels are not clipped and no label
     * is ever cut mid-word. (Container queries were the design's ask; they
     * cannot count variable-width items, which is why JS was allowed.)
     */
    .site-header__nav {
        display: flex;
        align-items: center;
        gap: var(--space-6);
        padding-bottom: 0;
        border-top: 0;
        margin-top: var(--space-5);
    }

    .site-header__nav-account {
        display: none;
    }

    .site-header__nav-list {
        display: flex;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: var(--space-6);
        min-width: 0;
    }

    .site-header__nav-item {
        flex: none;
    }

    .site-header__nav-link {
        white-space: nowrap;
        padding-block: 12px;
    }

    .site-header__overflow {
        display: block;
        position: relative;
        flex: none;
    }

    /* Pushes the right-hand group right. With two items, two auto margins split the free
       space, which places Haber Arşivi mid-right and E-Gazete at the end. */
    .site-header__end-item {
        margin-inline-start: auto;
    }

    .site-header__nav-link--archive {
        white-space: nowrap;
    }

    .site-header__nav--measured .site-header__nav-list {
        overflow: visible;
    }

    /* Group dropdown panel (16a): paper, under its label. */
    .site-header__group {
        position: relative;
    }

    .site-header__group-summary {
        white-space: nowrap;
    }

    .site-header__group-list {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 50;
        min-width: 200px;
        padding: var(--space-2) 0;
        background: var(--paper);
        border: var(--rule-hairline) solid var(--rule);
        box-shadow: var(--shadow-dropdown);
    }

    /* A dropdown at the right end opens leftwards, so it stays on the screen. */
    .site-header__group--end .site-header__group-list {
        left: auto;
        right: 0;
    }

    .site-header__group-link {
        padding: var(--space-2) var(--space-5);
        color: var(--body);
        white-space: nowrap;
    }

    .site-header__group-link:hover,
    .site-header__group-link[aria-current="page"] {
        color: var(--accent);
    }

    .site-footer__top {
        flex-direction: row;
        align-items: flex-start;
        gap: 34px;
    }

    .site-footer__brand-column {
        flex: none;
        width: 290px;
    }

    .site-footer__columns {
        flex: 1 1 auto;
    }

    .site-footer__newsletter {
        flex: none;
        width: 250px;
        border-top: 0;
        border-inline-start: var(--rule-hairline) solid var(--rule-on-ink);
        padding-top: 0;
        padding-inline-start: var(--space-7);
    }

    .site-footer__legal {
        flex-direction: row;
        align-items: center;
        gap: var(--space-5);
    }

    .site-footer__legal-text {
        margin-inline-end: auto;
    }

    /* 4a/4b: dividers between the strapline group, the account links and TR,
       and the bar fixed at 34px (the 44px touch-target floor is a phone rule). */
    .site-utility__inner {
        min-height: 34px;
        flex-wrap: nowrap;
    }

    .site-utility__account,
    .site-utility .lang-switcher {
        padding-inline-start: var(--space-4);
        border-inline-start: var(--rule-hairline) solid var(--rule-on-ink);
    }

    .site-utility .lang-switcher__toggle {
        min-height: 34px;
    }
}

/* ---------------------------------------------------------------------------
   Flash messages. Rendered by includes/messages.html, which is included per
   template rather than from base.html.
   --------------------------------------------------------------------------- */

.site-messages {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

/* Messages at the top of <main> (base.html) line up with the header's
   content column; pages that place them elsewhere (article, contact) keep
   their own column's width. */
.site-main > .site-messages {
    max-width: var(--page-max);
    margin: var(--space-4) auto 0;
    padding-inline: var(--gutter);
}

.site-messages__item {
    padding: 0.65rem 0.9rem;
    border-left: 4px solid var(--rule);
    background: var(--tint);
    font-size: 0.9375rem;
}

.site-messages__item--success {
    border-left-color: var(--success);
}

.site-messages__item--error {
    border-left-color: var(--error);
}

.site-messages__item--info {
    border-left-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Print (§6c). Strips site chrome so an article prints as an article. The
   article-specific half lives in articles.css.
   --------------------------------------------------------------------------- */

@media print {
    .site-utility,
    .site-header,
    .site-footer,
    .site-messages,
    .lang-switcher,
    .cookie-consent {
        display: none !important;
    }

    .site-body {
        display: block;
        color: #000;
        background: #fff;
        font-size: 11pt;
    }

    .site-main {
        max-width: none;
        margin: 0;
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: none;
    }

    /* Printed pages lose link targets entirely otherwise. Only for links with
       a real href — not in-page anchors, which are meaningless on paper. */
    .article-body a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 9pt;
        word-break: break-all;
    }

    img {
        max-width: 100% !important;
    }
}

/* ---------------------------------------------------------------------------
   Simple content pages with a form or a short message — contact (§6d) and the
   newsletter signup/confirm/unsubscribe pages (§6e). Kept in base.css rather
   than articles.css so these pages don't pull in the article stylesheet for
   layout they don't otherwise use.
   --------------------------------------------------------------------------- */

.simple-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.simple-page__title {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.simple-page__lede {
    margin: 0 0 1.75rem;
    color: var(--meta);
}

.simple-form__row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 1rem;
}

.simple-form__row label {
    font: 600 13px / 1.4 var(--font-sans);
    color: var(--ink);
}

/* Same field look as the sign-in and donation forms: square, 1.5px ink,
   at least 50px tall, sans text (design-principles section 2, line language).
   The page used the generic rounded 1px box until the 2026-11-02 UI audit. */
.simple-form__row input,
.simple-form__row textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px / 1.4 var(--font-sans);
}

.simple-form__row textarea {
    resize: vertical;
}

.simple-form__row ul.errorlist {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--error);
    font: 400 13px / 1.4 var(--font-sans);
}

.simple-form__submit {
    min-height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    font: 600 14px / 1 var(--font-sans);
    color: var(--on-ink);
    cursor: pointer;
}

.simple-form__submit:hover,
.simple-form__submit:focus-visible {
    background: var(--accent);
}

/* Honeypot. Moved off-screen rather than display:none — some bots skip fields
   that are display:none, which would defeat the point of having it. */
.form-honeypot-wrapper {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------------------
   Banners. Rendered by apps/banners' show_banners template tag, used across
   the homepage hero, article sidebar/footer and this file's site footer.
   --------------------------------------------------------------------------- */

.banner-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 0 1.5rem;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
}

/*
 * Ad frame (design 4a): dashed rules top and bottom, a "REKLAM" label, and a
 * box of declared size. The creative is matted inside the box — flex-centred
 * with max-width/max-height — so an oversized image is contained rather than
 * setting the height of the page around it.
 */
.banner-slot {
    margin: var(--space-6) 0;
    padding: 14px 0;
    border-top: var(--rule-hairline) dashed var(--rule-dashed);
    border-bottom: var(--rule-hairline) dashed var(--rule-dashed);
    text-align: center;
}

.banner-slot__label {
    margin: 0 0 9px;
    font: 400 9.5px / 1 var(--font-sans);
    letter-spacing: 0.16em;
    color: var(--meta);
    text-transform: uppercase; /* D2: the msgid is sentence case; casing is CSS */
}

.banner-slot__box {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin-inline: auto;
    overflow: hidden;
    background: var(--mat);
}

.banner-slot--728x90 .banner-slot__box {
    width: 728px;
    aspect-ratio: 728 / 90;
}

.banner-slot--300x250 .banner-slot__box {
    width: 300px;
    aspect-ratio: 300 / 250;
}

.banner-slot .banner-list,
.banner-slot .banner,
.banner-slot .banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
}

.banner-slot .banner img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

/* ---------------------------------------------------------------------------
   Announcements on their own (owner ruling 2026-11-01)
   --------------------------------------------------------------------------- */

/* The strip under the header on every page. --brand fill with ink text: the
   one pairing design-principles §2 allows on #4DB2EC (6.5:1). */
.announcement-strip {
    background: var(--brand);
    color: var(--ink);
}

.announcement-strip[hidden] {
    display: none;
}

.announcement-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    max-width: var(--page-max);
    margin: 0 auto;
    padding: var(--space-2) var(--gutter);
    font: 600 var(--text-ui) / 1.4 var(--font-sans);
}

.announcement-strip__link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.announcement-strip__close {
    flex: none;
    min-width: var(--target-min);
    min-height: var(--target-min);
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

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

.announcement-list__item {
    padding-block: var(--space-4);
    border-bottom: 1px solid var(--rule);
}

.announcement-list__title {
    margin: 0 0 var(--space-2);
    font: 700 var(--text-h3) / var(--leading-h3) var(--font-serif);
}

.announcement-list__title a {
    color: var(--ink);
    text-decoration: none;
}

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

.announcement-list__summary,
.announcement-detail__summary {
    color: var(--body);
}

.announcement-detail__kicker a {
    color: var(--accent);
    font: 600 var(--text-kicker) / 1 var(--font-sans);
    letter-spacing: var(--tracking-kicker);
    text-transform: uppercase;
    text-decoration: none;
}

.announcement-detail__image {
    display: block;
    width: 100%;
    height: auto;
    margin-block: var(--space-4);
}

.announcement-detail__more {
    color: var(--accent);
    font-weight: 600;
}

.homepage-announcements__list {
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
    font: 400 15px / 1.5 var(--font-serif);
}

.homepage-announcements__list li + li {
    margin-top: var(--space-2);
}

.homepage-announcements__list a {
    color: var(--ink);
}

.homepage-announcements__all {
    font: 600 var(--text-ui) / 1 var(--font-sans);
    color: var(--accent);
}

/* Back-to-top button (plan 11e). Fixed bottom-right, a full touch target.
   Raised on phones so it never covers the article's sticky share bar, and by
   the cookie notice's height while that shows, so the notice never covers it
   (site-base.js keeps the height; 0 once dismissed). */
.back-to-top {
    position: fixed;
    right: var(--gutter);
    bottom: calc(var(--space-5) + 56px + var(--cookie-notice-height, 0px));
    z-index: 40;
    width: var(--target-min);
    height: var(--target-min);
    /* The white ring keeps it visible over the ink footer as well as on
       white pages. */
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--ink);
    color: var(--on-ink);
    font: 700 20px / 1 var(--font-sans);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top[hidden] {
    display: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
    background: var(--accent);
}

@media (min-width: 900px) {
    .back-to-top {
        bottom: calc(var(--space-6) + var(--cookie-notice-height, 0px));
    }
}

/* 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) {
    .site-utility__inner {
        gap: 0;
    }

    .site-utility__account {
        gap: 4px;
    }

    /* Signed in there are five items; the name gives way (ellipsis) instead of
       pushing the language switcher onto a second row. */
    .site-utility__greeting {
        flex: 0 1 auto;
        min-width: 0;
        max-width: 9rem;
    }

    .site-utility__inner {
        flex-wrap: nowrap;
    }

    .site-utility .lang-switcher {
        flex: none;
    }
}

/* Under 420px the five signed-in links do not fit with the name as well; the
   "Hesabım" link beside it says whose account it is. */
@media (max-width: 419px) {
    .site-utility__greeting {
        display: none;
    }

    .site-utility__link {
        display: inline-flex;
        align-items: center;
        min-width: var(--target-min);
        min-height: var(--target-min);
        justify-content: center;
        padding-inline: 6px;
    }

    .site-header__brand {
        min-height: var(--target-min);
    }

    .site-footer__link {
        display: inline-flex;
        align-items: center;
        min-height: var(--target-min);
        padding-block: 0;
    }

    .site-footer__column-summary {
        display: flex;
        align-items: center;
        min-height: var(--target-min);
    }

    .site-footer__social-link {
        min-height: var(--target-min);
    }

    .site-footer__newsletter-input {
        min-height: 48px;
    }

    .site-footer__newsletter-cta {
        min-height: 48px;
    }
}

/*
 * Standalone text links big enough to tap on a phone (390px review, backlog #51). These labels are
 * 11-15px tall; WCAG 2.2 (2.5.8) asks for 24px. An invisible overlay 7px above and below each link
 * takes the taps without moving anything (padding moved headings: some of these links sit in a
 * flex row, where padding adds height). Links inside sentences are exempt and left alone.
 * tests/e2e/test_phone_touch_targets.py.
 */
.homepage-well__kicker a,
.section-block__label a,
.homepage-rail__label a,
.homepage-rail__more a,
.article-kicker a,
.shelf__breadcrumb a {
    position: relative;
}

.homepage-well__kicker a::after,
.section-block__label a::after,
.homepage-rail__label a::after,
.homepage-rail__more a::after,
.article-kicker a::after,
.shelf__breadcrumb a::after {
    content: "";
    position: absolute;
    inset: -7px 0;
}
