/*
Theme Name: Manavgat Haber
Theme URI: https://manavgatinsesi.com
Author: Manavgat'ın Sesi
Description: Yerel haber siteleri için WordPress teması. Flaş haber bandı, numaralı manşet slider, köşe yazarları, öne çıkan haberler, özel haber bandı, editörün seçimi, foto/video galeri, kategori sekmeleri, blog bölümü, popüler haberler, okunma sayacı ve koyu tema içerir.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manavgat-haber
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, post-formats, threaded-comments, translation-ready
*/

/* =========================================================================
   Tasarım değişkenleri
   Nehir yeşili (Manavgat Çayı) ana renk; kırmızı yalnızca flaş/son dakika için.
   ========================================================================= */
:root {
	--paper: #ffffff;
	--mist: #eef3f4;
	--ink: #15232b;
	--muted: #5a6b72;
	--line: #d5dfe1;
	--river: #0f5e6e;
	--river-deep: #0a3f4a;
	--flash: #cf2318;
	--band: #0a3f4a;
	--band-ink: #f1f7f8;
	--on-photo: #ffffff;

	--f-head: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--f-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--r-sm: 4px;
	--r-md: 8px;
}

[data-theme="dark"] {
	--paper: #0e191e;
	--mist: #16242a;
	--ink: #e5eef0;
	--muted: #98aab0;
	--line: #263940;
	--river: #63bccc;
	--river-deep: #082a32;
	--flash: #ff5a4e;
	--band: #082a32;
	--band-ink: #e5eef0;
	color-scheme: dark;
}

/* =========================================================================
   Temel
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--river); }

:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-stretch: 82%;
	font-weight: 750;
	line-height: 1.15;
	letter-spacing: -0.005em;
	margin: 0 0 0.4em;
	text-wrap: balance;
}

button { font: inherit; color: inherit; cursor: pointer; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px;
	background: var(--paper); color: var(--ink); border-radius: var(--r-sm);
}

.mh-container { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.mh-main:focus { outline: none; }

.mh-ico { width: 1.15em; height: 1.15em; flex: none; }

.mh-icon-btn {
	display: inline-grid; place-items: center;
	width: 40px; height: 40px; padding: 0;
	border: 0; border-radius: 50%;
	background: transparent;
}
.mh-icon-btn:hover { background: var(--mist); color: var(--river); }

/* =========================================================================
   Üst bar ve logo alanı
   ========================================================================= */
.mh-topbar { background: var(--mist); font-size: 0.875rem; color: var(--muted); }
.mh-topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 40px; }
.mh-topbar__menu ul { display: flex; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.mh-topbar__menu a:hover { color: var(--ink); }
.mh-topbar__tools { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.mh-topbar .mh-icon-btn { width: 34px; height: 34px; }
.mh-topbar .mh-icon-btn:hover { background: var(--paper); }

.mh-theme-btn .mh-ico--sun { display: none; }
[data-theme="dark"] .mh-theme-btn .mh-ico--sun { display: block; }
[data-theme="dark"] .mh-theme-btn .mh-ico--moon { display: none; }

.mh-social { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.mh-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.mh-social a:hover { background: var(--paper); color: var(--river); }

.mh-masthead__inner {
	display: flex; align-items: center; justify-content: space-between; gap: var(--gap);
	padding-block: clamp(14px, 2.5vw, 26px);
}
.mh-brand__name, .mh-brand__logo { margin: 0; }
.mh-brand__name {
	font-family: var(--f-head);
	font-stretch: 68%;
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 3.4rem);
	line-height: 0.95;
	letter-spacing: -0.01em;
}
.mh-brand__name a:hover { color: var(--river); }
.mh-brand__logo img { max-height: 72px; width: auto; }
[data-theme="dark"] .mh-brand__logo img { filter: brightness(1.08); }
.mh-brand__tagline { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* =========================================================================
   Ana menü
   ========================================================================= */
.mh-nav {
	position: sticky; top: 0; z-index: 50;
	background: var(--paper);
	border-top: 1px solid var(--line);
	border-bottom: 3px solid var(--river);
}
.admin-bar .mh-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mh-nav { top: 0; } }

.mh-nav__inner { display: flex; align-items: center; gap: 0.5rem; min-height: 52px; }
.mh-nav__open, .mh-nav__brand { display: none; }

.mh-menu {
	display: flex; flex-wrap: wrap; gap: 0;
	margin: 0; padding: 0; list-style: none;
	font-family: var(--f-head); font-stretch: 85%; font-weight: 650; font-size: 1rem;
}
.mh-menu > li { position: relative; }
.mh-menu > li > a { display: block; padding: 14px 12px; }
.mh-menu > li.current-menu-item > a,
.mh-menu > li.current-category-ancestor > a,
.mh-menu > li.current-menu-ancestor > a { color: var(--river); box-shadow: inset 0 -3px 0 var(--river); }
.mh-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	margin: 0; padding: 6px 0; list-style: none;
	background: var(--paper); border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md);
	box-shadow: 0 12px 28px rgba(10, 40, 48, 0.14);
	opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.mh-menu li:hover > .sub-menu, .mh-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mh-menu .sub-menu a { display: block; padding: 8px 16px; font-weight: 550; }

.mh-nav__search {
	display: inline-flex; align-items: center; gap: 0.45rem;
	margin-left: auto; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper); color: var(--muted); font-size: 0.9375rem;
}
.mh-nav__search:hover { border-color: var(--river); color: var(--river); }

/* =========================================================================
   Flaş haber bandı
   ========================================================================= */
.mh-ticker { background: var(--mist); border-bottom: 1px solid var(--line); }
.mh-ticker__inner { display: flex; align-items: stretch; gap: 0.75rem; min-height: 44px; }
.mh-ticker__label {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0 14px; margin-block: 7px;
	background: var(--flash); color: #fff; border-radius: var(--r-sm);
	font-family: var(--f-head); font-stretch: 85%; font-weight: 750; font-size: 0.9375rem;
	white-space: nowrap;
}
.mh-ticker__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: mh-pulse 1.6s ease-in-out infinite; }
@keyframes mh-pulse { 50% { opacity: 0.25; } }

.mh-ticker__viewport {
	flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center;
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent);
}
.mh-ticker__track { display: flex; width: max-content; animation: mh-marquee var(--mh-ticker-time, 60s) linear infinite; }
.mh-ticker:hover .mh-ticker__track,
.mh-ticker:focus-within .mh-ticker__track,
.mh-ticker.is-paused .mh-ticker__track { animation-play-state: paused; }
@keyframes mh-marquee { to { transform: translateX(-50%); } }

.mh-ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.mh-ticker__list li { display: flex; align-items: center; gap: 0.5rem; padding-right: 2.25rem; white-space: nowrap; font-weight: 600; }
.mh-ticker__list time { color: var(--flash); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.875rem; }

.mh-ticker__toggle { align-self: center; width: 34px; height: 34px; }
.mh-ticker__toggle .mh-ico--play { display: none; }
.mh-ticker.is-paused .mh-ticker__toggle .mh-ico--play { display: block; }
.mh-ticker.is-paused .mh-ticker__toggle .mh-ico--pause { display: none; }

/* =========================================================================
   Manşet slider
   ========================================================================= */
.mh-slider { margin-top: var(--gap); }
.mh-slider__stage {
	position: relative; aspect-ratio: 2 / 1; overflow: hidden;
	border-radius: var(--r-md) var(--r-md) 0 0;
	background: var(--river-deep);
}
.mh-slide {
	position: absolute; inset: 0;
	opacity: 0; visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s;
}
.mh-slide.is-active { opacity: 1; visibility: visible; }
.mh-slide__link { display: block; height: 100%; color: var(--on-photo); }
.mh-slide__link:hover { color: var(--on-photo); }
.mh-slide img, .mh-slide .mh-ph { width: 100%; height: 100%; object-fit: cover; }
.mh-slide__link::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(4, 22, 27, 0.92) 0%, rgba(4, 22, 27, 0.55) 35%, rgba(4, 22, 27, 0) 65%);
}
.mh-slide__text {
	position: absolute; z-index: 1; left: clamp(18px, 4vw, 48px); right: clamp(18px, 4vw, 48px); bottom: clamp(18px, 4vw, 44px);
}
.mh-slide__text .mh-badge { color: #fff; background: var(--river); padding: 4px 10px; border-radius: var(--r-sm); }
.mh-slide__title {
	margin: 0.6rem 0 0; max-width: 22ch;
	font-stretch: 70%; font-weight: 800;
	font-size: clamp(1.75rem, 4.6vw, 3.6rem); line-height: 1.02;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.mh-slide__link:hover .mh-slide__title,
.mh-slide__link:focus-visible .mh-slide__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Numaralı manşet şeridi */
.mh-slider__nav { display: flex; background: var(--river-deep); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }
[data-theme="dark"] .mh-slider__nav { background: var(--mist); }
.mh-slider__pager { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mh-slider__pager li { flex: 1 0 40px; }
.mh-slider__pager button,
.mh-slider__arrow {
	width: 100%; height: 46px; border: 0;
	background: transparent; color: rgba(255, 255, 255, 0.8);
	font-family: var(--f-head); font-weight: 750; font-size: 1rem; font-variant-numeric: tabular-nums;
	border-left: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .mh-slider__pager button, [data-theme="dark"] .mh-slider__arrow { color: var(--muted); border-color: var(--line); }
.mh-slider__arrow { flex: 0 0 52px; display: grid; place-items: center; }
.mh-slider__pager button:hover, .mh-slider__arrow:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.mh-slider__pager button.is-active { background: var(--flash); color: #fff; }

/* =========================================================================
   Bölümler ve başlıklar
   ========================================================================= */
.mh-section { margin-block: clamp(32px, 5vw, 56px); }
.mh-slider + .mh-section { margin-top: clamp(28px, 4vw, 44px); }

.mh-sec-head {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 1rem;
	border-top: 3px solid var(--ink); padding-top: 10px; margin-bottom: 1.25rem;
}
.mh-sec-head__title { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-stretch: 75%; font-weight: 800; }
.mh-sec-head__tools { display: flex; align-items: center; gap: 0.75rem; }
.mh-more { font-weight: 700; font-size: 0.9375rem; color: var(--river); }
.mh-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.mh-scroll-btns { display: flex; gap: 0.25rem; }
.mh-scroll-btns .mh-icon-btn { border: 1px solid var(--line); width: 36px; height: 36px; }

.mh-grid { display: grid; gap: var(--gap); }
.mh-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mh-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mh-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mh-stack { display: grid; gap: 0; }
.mh-stack > .mh-card { padding-block: 18px; border-bottom: 1px solid var(--line); }
.mh-stack > .mh-card:first-child { padding-top: 0; }

/* =========================================================================
   Haber kartları
   ========================================================================= */
.mh-card { position: relative; display: flex; flex-direction: column; gap: 0.7rem; min-width: 0; }
.mh-card__media { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--mist); aspect-ratio: 16 / 10; }
.mh-card__media img, .mh-ph { width: 100%; height: 100%; object-fit: cover; }
.mh-card__media img { transition: transform 0.4s ease; }
.mh-card:hover .mh-card__media img { transform: scale(1.03); }

.mh-ph {
	display: grid; place-items: center; padding: 1rem; text-align: center;
	background: var(--river-deep); color: rgba(255, 255, 255, 0.55);
	font-family: var(--f-head); font-stretch: 70%; font-weight: 800; font-size: 1.25rem;
}

.mh-card__format {
	position: absolute; right: 10px; bottom: 10px;
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
	background: rgba(4, 22, 27, 0.75); color: #fff;
}

.mh-card__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.mh-card__title { margin: 0; font-size: 1.1875rem; line-height: 1.2; }
.mh-card__title a:hover { color: var(--river); }
.mh-card__excerpt { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.9875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.mh-badge { align-self: flex-start; font-weight: 700; font-size: 0.8125rem; color: var(--river); }
a.mh-badge:hover { text-decoration: underline; }

.mh-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; color: var(--muted); font-size: 0.8125rem; }
.mh-meta > span { display: inline-flex; align-items: center; gap: 0.3rem; }
.mh-meta .mh-ico { width: 14px; height: 14px; }

/* Büyük kart */
.mh-card--big .mh-card__title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-stretch: 75%; font-weight: 800; line-height: 1.08; }
.mh-card--big .mh-card__excerpt { font-size: 1.0625rem; -webkit-line-clamp: 4; }

/* Liste kartı */
.mh-card--list { flex-direction: row; gap: 1.1rem; }
.mh-card--list .mh-card__media { flex: 0 0 clamp(120px, 30%, 240px); }
.mh-card--list .mh-card__title { font-size: 1.25rem; }

/* Küçük kart (yan sütun) */
.mh-card--mini { flex-direction: row; align-items: flex-start; gap: 0.8rem; }
.mh-card--mini .mh-card__media { flex: 0 0 84px; aspect-ratio: 1; }
.mh-card--mini .mh-card__title { font-size: 1rem; font-stretch: 90%; line-height: 1.25; }

/* Dikey kart (galeri) */
.mh-card--tall { aspect-ratio: 3 / 4; border-radius: var(--r-md); overflow: hidden; color: var(--on-photo); }
.mh-card--tall .mh-card__media { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.mh-card--tall .mh-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 22, 27, 0.9), rgba(4, 22, 27, 0) 60%); }
.mh-card--tall .mh-card__format { top: 12px; bottom: auto; right: 12px; z-index: 1; }
.mh-card--tall .mh-card__body { position: relative; z-index: 1; margin-top: auto; padding: 16px; }
.mh-card--tall .mh-card__title { font-size: 1.125rem; }
.mh-card--tall .mh-card__title a { color: var(--on-photo); }
.mh-card--tall .mh-card__title a::after { content: ""; position: absolute; inset: 0; } /* tüm kart tıklanır */
.mh-card--tall .mh-badge, .mh-card--tall .mh-meta { color: rgba(255, 255, 255, 0.8); }

/* =========================================================================
   Öne çıkan haberler
   ========================================================================= */
.mh-featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); }
.mh-featured__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-content: start; }
.mh-featured__side .mh-card__title { font-size: 1.0625rem; }

/* =========================================================================
   Özel haber bandı
   ========================================================================= */
.mh-special { background: var(--band); color: var(--band-ink); padding-block: clamp(32px, 5vw, 56px); margin-block: clamp(32px, 5vw, 56px); }
.mh-special__title {
	display: inline-flex; align-items: center; gap: 0.6rem;
	font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-stretch: 75%; font-weight: 800; margin-bottom: 1.25rem;
}
.mh-special__title::before { content: ""; width: 6px; height: 1.1em; background: var(--flash); border-radius: 2px; }
.mh-special__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); }
.mh-special .mh-card__title a, .mh-special a:hover { color: var(--band-ink); }
.mh-special .mh-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mh-special .mh-badge { color: #8fd3df; }
.mh-special .mh-meta, .mh-special .mh-card__excerpt { color: rgba(241, 247, 248, 0.72); }
.mh-special .mh-card--big .mh-card__media { aspect-ratio: 16 / 10; }

/* =========================================================================
   Yatay şeritler: köşe yazarları, galeri
   ========================================================================= */
.mh-scroller {
	display: grid; grid-auto-flow: column; gap: var(--gap);
	margin: 0; padding: 0 0 10px; list-style: none;
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.mh-scroller > li { scroll-snap-align: start; min-width: 0; }
.mh-columnists__row { grid-auto-columns: clamp(220px, 23%, 290px); }
.mh-gallery__row { grid-auto-columns: clamp(200px, 19%, 250px); }

/* Köşe yazarı kartları */
.mh-writer { display: flex; gap: 0.9rem; align-items: flex-start; }
.mh-writer__photo { flex: none; }
.mh-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--mist); }
.mh-avatar--sm { width: 32px; height: 32px; }
.mh-avatar--lg { width: 104px; height: 104px; }
.mh-writer__body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.mh-writer__name { font-family: var(--f-head); font-stretch: 85%; font-weight: 750; font-size: 1rem; }
.mh-writer__role, .mh-writer__date { color: var(--muted); font-size: 0.8125rem; }
.mh-writer__post { font-family: var(--f-body); font-style: italic; font-size: 1rem; line-height: 1.3; }
.mh-writer__post:hover { color: var(--river); text-decoration: underline; text-underline-offset: 3px; }

.mh-writer--tile {
	flex-direction: column; align-items: flex-start; height: 100%;
	padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md);
	background: var(--paper);
}
.mh-writer--tile .mh-avatar { width: 72px; height: 72px; }
.mh-writer--tile .mh-writer__post { font-size: 1.0625rem; margin-top: 0.3rem; }
.mh-writer--tile .mh-writer__date { margin-top: auto; padding-top: 0.5rem; }

.mh-writer-list { display: grid; gap: 16px; margin: 0 0 14px; padding: 0; list-style: none; }
.mh-writer-list .mh-avatar { width: 52px; height: 52px; }

.mh-writer-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap);
	margin: 0 0 clamp(32px, 5vw, 56px); padding: 0; list-style: none;
}
.mh-writer-grid .mh-writer { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-md); }
.mh-writer-grid .mh-avatar { width: 80px; height: 80px; }

/* =========================================================================
   Kategori sekmeleri
   ========================================================================= */
.mh-tabs__list { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.mh-tabs__list [role="tab"] {
	padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper); font-weight: 600; font-size: 0.9375rem;
}
.mh-tabs__list [role="tab"]:hover { border-color: var(--river); color: var(--river); }
.mh-tabs__list [role="tab"][aria-selected="true"] { background: var(--river); border-color: var(--river); color: #fff; }
[data-theme="dark"] .mh-tabs__list [role="tab"][aria-selected="true"] { color: var(--paper); }
.mh-tabs__all { display: inline-block; margin-top: 1.25rem; }

/* =========================================================================
   Yerleşim ve yan sütun
   ========================================================================= */
.mh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.mh-page { padding-block: clamp(24px, 4vw, 40px); }
.mh-sidebar { display: grid; gap: 32px; position: sticky; top: 76px; }
.admin-bar .mh-sidebar { top: 108px; }

.mh-widget__title {
	font-size: 1.25rem; font-stretch: 75%; font-weight: 800;
	border-top: 3px solid var(--ink); padding-top: 8px; margin-bottom: 1rem;
}
.mh-widget ul:not([class]) { margin: 0; padding-left: 1.1rem; }

/* Popüler sıralaması: gerçek bir sıra olduğu için numaralı */
.mh-rank { counter-reset: rank; display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.mh-rank > li { counter-increment: rank; display: grid; grid-template-columns: 30px 1fr; gap: 6px; align-items: start; }
.mh-rank > li::before {
	content: counter(rank);
	font-family: var(--f-head); font-stretch: 62%; font-weight: 800; font-size: 2rem; line-height: 0.9;
	color: var(--river);
}

.mh-ad { display: grid; place-items: center; gap: 4px; text-align: center; }
.mh-ad__label { font-size: 0.6875rem; color: var(--muted); }
.mh-ad--home { margin-block: clamp(24px, 4vw, 40px); }
.mh-ad--article { margin-block: 32px; }
.mh-ad--header { max-width: 728px; flex: 0 1 728px; }

/* =========================================================================
   Arşiv, arama, boş durum
   ========================================================================= */
.mh-archive-head { margin-bottom: 1.75rem; }
.mh-archive-head__title { font-size: clamp(1.9rem, 4vw, 2.75rem); font-stretch: 70%; font-weight: 800; margin-bottom: 0.3rem; }
.mh-archive-head__desc { color: var(--muted); max-width: 70ch; }
.mh-loop__lead { grid-column: 1 / -1; padding-bottom: var(--gap); border-bottom: 1px solid var(--line); }
.mh-empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--r-md); }
.mh-404 { max-width: 980px; }

.mh-searchform { display: flex; gap: 0; margin-top: 1rem; max-width: 560px; }
.mh-searchform input {
	flex: 1; min-width: 0; padding: 12px 16px;
	border: 1px solid var(--line); border-right: 0; border-radius: var(--r-md) 0 0 var(--r-md);
	background: var(--paper); color: var(--ink); font: inherit;
}
.mh-searchform input:focus-visible { outline-offset: -2px; }
.mh-searchform button {
	display: grid; place-items: center; width: 52px; border: 0;
	border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--river); color: #fff;
}
[data-theme="dark"] .mh-searchform button { color: var(--paper); }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.nav-links .page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px;
	border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 600;
}
.nav-links .page-numbers.current { background: var(--river); border-color: var(--river); color: #fff; }
.nav-links a.page-numbers:hover { border-color: var(--river); }

/* =========================================================================
   Haber detay
   ========================================================================= */
.mh-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted); }
.mh-crumbs li:not(:last-child)::after { content: "/"; margin-left: 0.3rem; opacity: 0.5; }
.mh-crumbs a:hover { color: var(--river); }

.mh-article__head { margin-bottom: 1.5rem; }
.mh-article__title { font-size: clamp(2rem, 4.6vw, 3.1rem); font-stretch: 72%; font-weight: 800; line-height: 1.04; margin: 0.4rem 0 0.8rem; }
.mh-article__spot { margin: 0 0 1.1rem; font-size: clamp(1.125rem, 1.8vw, 1.3rem); font-weight: 600; line-height: 1.45; max-width: 62ch; }
.mh-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; color: var(--muted); font-size: 0.875rem; margin-bottom: 1rem; }
.mh-article__author { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; }
.mh-article__figure { margin: 0 0 1.75rem; }
.mh-article__figure img { width: 100%; border-radius: var(--r-md); }
.mh-article__figure figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.875rem; }
.mh-article__foot { display: grid; gap: 1.25rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

.mh-share { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mh-share__btn {
	display: inline-flex; align-items: center; gap: 0.4rem;
	height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--paper); font-size: 0.875rem; font-weight: 600;
}
.mh-share__btn:hover { border-color: var(--river); color: var(--river); }
.mh-share__btn--facebook, .mh-share__btn--x, .mh-share__btn--whatsapp { width: 38px; padding: 0; justify-content: center; }
.mh-share__btn.is-done { border-color: var(--river); color: var(--river); }

.mh-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.mh-tags a { display: inline-block; padding: 4px 12px; background: var(--mist); border-radius: 999px; font-size: 0.875rem; }

/* Okuma metni */
.mh-content { font-size: 1.1875rem; line-height: 1.7; max-width: 70ch; }
.mh-content > * + * { margin-top: 1.1em; }
.mh-content p { margin: 0; }
.mh-content p + p { margin-top: 1.1em; }
.mh-content h2 { font-size: 1.75rem; margin-top: 1.6em; }
.mh-content h3 { font-size: 1.4rem; margin-top: 1.4em; }
.mh-content a { color: var(--river); text-decoration: underline; text-underline-offset: 3px; }
.mh-content blockquote { margin-inline: 0; padding: 0.2em 0 0.2em 1.2em; border-left: 4px solid var(--river); font-size: 1.25rem; font-style: italic; }
.mh-content figure { margin-inline: 0; }
.mh-content figcaption, .wp-caption-text { color: var(--muted); font-size: 0.875rem; margin-top: 0.4rem; }
.mh-content img { border-radius: var(--r-sm); }
.mh-content table { width: 100%; border-collapse: collapse; font-size: 1rem; display: block; overflow-x: auto; }
.mh-content th, .mh-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.3em 0 0.8em 1.2em; }
.aligncenter { margin-inline: auto; }

/* Köşe yazısı başlığı */
.mh-column-head { display: flex; gap: 1.25rem; align-items: flex-start; margin-bottom: 1.25rem; }
.mh-column-head__name { font-family: var(--f-head); font-stretch: 85%; font-weight: 750; font-size: 1.125rem; color: var(--river); }
.mh-column-head__role { display: block; color: var(--muted); font-size: 0.875rem; }
.mh-article--column .mh-article__title { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.mh-article--column .mh-content { font-size: 1.25rem; }
.mh-article--column .mh-share { margin-bottom: 1.75rem; }

.mh-authorbox { display: flex; gap: 1rem; margin-top: 2rem; padding: 20px; background: var(--mist); border-radius: var(--r-md); }
.mh-authorbox p { margin: 0; }
.mh-authorbox__name { font-weight: 700; margin-bottom: 0.2rem !important; }

.mh-column-list { margin: 0; padding: 0; list-style: none; }
.mh-column-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mh-column-list a { font-weight: 600; font-size: 1.0625rem; }
.mh-column-list time { color: var(--muted); font-size: 0.875rem; }
.mh-column-list__author { flex-basis: 100%; color: var(--river); font-weight: 700; font-size: 0.875rem; }

.mh-profile { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.mh-profile__role { margin: 0; color: var(--river); font-weight: 700; }
.mh-profile__bio { margin: 0.5rem 0 0; color: var(--muted); max-width: 62ch; }

/* Yorumlar */
.mh-comment-list, .mh-comment-list .children { list-style: none; margin: 0; padding: 0; }
.mh-comment-list .children { padding-left: clamp(16px, 4vw, 48px); }
.mh-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); }
.mh-comment-list .comment-author { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.mh-comment-list .comment-author img { border-radius: 50%; }
.mh-comment-list .comment-metadata { font-size: 0.8125rem; color: var(--muted); }
.comment-respond { margin-top: 1.5rem; }
.comment-form { display: grid; gap: 0.9rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--paper); color: var(--ink); font: inherit;
}
.comment-form .submit { padding: 11px 22px; border: 0; border-radius: var(--r-sm); background: var(--river); color: #fff; font-weight: 700; cursor: pointer; }
[data-theme="dark"] .comment-form .submit { color: var(--paper); }

/* =========================================================================
   Alt bilgi
   ========================================================================= */
.mh-footer { margin-top: clamp(40px, 6vw, 72px); background: var(--river-deep); color: #d6e6e9; }
.mh-footer a:hover { color: #fff; text-decoration: underline; }
.mh-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); padding-block: clamp(36px, 5vw, 56px); }
.mh-footer .mh-brand__name { font-size: 2.25rem; color: #fff; }
.mh-footer .mh-brand__logo img { max-height: 56px; }
.mh-footer__about p { max-width: 42ch; color: #b4cbd0; }
.mh-footer .mh-widget__title { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.mh-footer .mh-social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.mh-footer__cats, .mh-contact { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.mh-footer__cats .children { display: none; }
.mh-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.mh-contact .mh-ico { margin-top: 0.25em; opacity: 0.7; }
.mh-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem;
	padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.875rem; color: #9fb9bf;
}
.mh-footer__copy { margin: 0; }
.mh-footer__menu { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; list-style: none; }

.mh-totop {
	position: fixed; right: 18px; bottom: 18px; z-index: 40;
	display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%;
	background: var(--river); color: #fff; box-shadow: 0 6px 20px rgba(10, 40, 48, 0.3);
}
.mh-totop[hidden] { display: none; }

/* =========================================================================
   Açılır pencereler
   ========================================================================= */
dialog { color: var(--ink); background: var(--paper); border: 0; padding: 0; }
dialog::backdrop { background: rgba(4, 22, 27, 0.6); }

.mh-drawer {
	margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(380px, 92vw);
	padding: 18px 20px 28px; overflow-y: auto;
}
.mh-drawer[open] { animation: mh-slide-in 0.22s ease-out; }
@keyframes mh-slide-in { from { transform: translateX(100%); } }
.mh-drawer__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mh-drawer .mh-brand__name { font-size: 1.75rem; }
.mh-drawer__menu, .mh-drawer__info { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.mh-drawer__menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--f-head); font-stretch: 85%; font-weight: 700; font-size: 1.125rem; }
.mh-drawer__menu .sub-menu { list-style: none; padding-left: 1rem; margin: 0; }
.mh-drawer__menu .sub-menu a { font-weight: 550; font-size: 1rem; }
.mh-drawer__info { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; color: var(--muted); font-size: 0.9375rem; }
.mh-drawer .mh-social { margin-top: 1.25rem; }

.mh-searchbox { width: min(680px, 92vw); margin-top: 12vh; padding: 28px; border-radius: var(--r-md); }
.mh-searchbox__close { position: absolute; top: 10px; right: 10px; }
.mh-searchbox__hint { margin: 0 0 0.25rem; font-family: var(--f-head); font-stretch: 80%; font-weight: 750; font-size: 1.5rem; }
.mh-searchbox .mh-searchform { max-width: none; }

/* =========================================================================
   Duyarlı yerleşim
   ========================================================================= */
@media (max-width: 1100px) {
	.mh-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-footer__grid { grid-template-columns: 1fr 1fr; }
	.mh-ad--header { display: none; }
}

@media (max-width: 960px) {
	.mh-layout { grid-template-columns: minmax(0, 1fr); }
	.mh-sidebar { position: static; }
	.mh-featured { grid-template-columns: minmax(0, 1fr); }
	.mh-special__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mh-special__grid > :first-child { grid-column: 1 / -1; }
	.mh-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
	.mh-topbar__menu { display: none; }
	.mh-menu { display: none; }
	.mh-nav__open { display: inline-grid; }
	.mh-nav__brand { display: block; font-family: var(--f-head); font-stretch: 70%; font-weight: 800; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mh-nav__search span { display: none; }
	.mh-nav__search { padding: 9px; border-radius: 50%; }
	.mh-masthead { display: none; }
	.mh-topbar__date { font-size: 0.8125rem; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }
	.mh-slider { width: 100%; margin-top: 0; }
	.mh-slider__stage { aspect-ratio: 4 / 3; border-radius: 0; }
	.mh-slider__nav { border-radius: 0; }
	.mh-slider__arrow { display: none; }
	.mh-grid--2, .mh-grid--3, .mh-grid--4, .mh-featured__side, .mh-special__grid { grid-template-columns: minmax(0, 1fr); }
	.mh-featured__side .mh-card, .mh-grid--3 .mh-card, .mh-grid--4 .mh-card, .mh-grid--2 .mh-card--card { flex-direction: row; gap: 0.9rem; }
	.mh-featured__side .mh-card__media, .mh-grid--3 .mh-card__media, .mh-grid--4 .mh-card__media, .mh-grid--2 .mh-card--card .mh-card__media { flex: 0 0 38%; }
	.mh-card--list .mh-card__excerpt { display: none; }
	.mh-columnists__row { grid-auto-columns: 78%; }
	.mh-gallery__row { grid-auto-columns: 62%; }
	.mh-footer__grid { grid-template-columns: minmax(0, 1fr); }
	.mh-topbar .mh-social { display: none; }
	.mh-column-head { flex-direction: column; }
	.mh-content { font-size: 1.0625rem; }
}

/* Hareket azaltma: bant kaymaz, kaydırılabilir liste olur. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
	.mh-ticker__track { animation: none !important; }
	.mh-ticker__viewport { overflow-x: auto; mask-image: none; }
	.mh-ticker__list[aria-hidden="true"], .mh-ticker__toggle { display: none; }
	.mh-ticker__dot { animation: none !important; }
}

@media print {
	.mh-topbar, .mh-nav, .mh-ticker, .mh-sidebar, .mh-share, .mh-ad, .mh-footer, .mh-totop, .mh-comments { display: none !important; }
	.mh-layout { display: block; }
}
