/* Gün gün savaş haritası — öneri.
   Düzen: geniş harita sahnesi, altında zaman çubuğu, onun altında "o günlerde ne oldu" paneli.
   Harita renkleri aşağıdaki --hrt-* değişkenlerinden okunur (harita.js tuvale bunlarla çizer). */

.hrt {
	--hrt-deniz: #dbe4e6;
	--hrt-kiyi: #a9b8bc;
	--hrt-tarafsiz: #f2eee3;
	--hrt-mihver: #4d515a;
	--hrt-mihver-isgal: #9a9da4;
	--hrt-muttefik: #4a7bb2;
	--hrt-muttefik-isgal: #a6bfdb;
	--hrt-sscb: #b5463b;
	--hrt-sscb-isgal: #dca59e;
	--hrt-fin: #5a9a90;
	--hrt-cephe: #ffffff;
	--hrt-cephe-golge: rgba(20, 20, 18, .3);
	--hrt-sinir: rgba(29, 29, 27, .42);
	--hrt-nehir: rgba(110, 150, 170, .34);
	--hrt-etiket: #1d1d1b;
	--hrt-etiket-hale: rgba(255, 255, 255, .88);
	padding-bottom: 56px;
}
:root[data-gorunum="koyu"] .hrt {
	--hrt-deniz: #1c2327;
	--hrt-kiyi: #0f1518;
	--hrt-tarafsiz: #47433d;
	--hrt-mihver: #8f95a1;
	--hrt-mihver-isgal: #646872;
	--hrt-muttefik: #5f92cb;
	--hrt-muttefik-isgal: #3e5f87;
	--hrt-sscb: #cc5a4d;
	--hrt-sscb-isgal: #87453e;
	--hrt-fin: #62a79c;
	--hrt-cephe: #fbf6ea;
	--hrt-cephe-golge: rgba(0, 0, 0, .45);
	--hrt-sinir: rgba(255, 255, 255, .34);
	--hrt-nehir: rgba(120, 160, 180, .4);
	--hrt-etiket: #f3f1ec;
	--hrt-etiket-hale: rgba(20, 20, 18, .8);
}
@media (prefers-color-scheme: dark) {
	:root:not([data-gorunum]) .hrt {
		--hrt-deniz: #1c2327; --hrt-kiyi: #0f1518; --hrt-tarafsiz: #47433d; --hrt-mihver: #8f95a1; --hrt-mihver-isgal: #646872;
		--hrt-muttefik: #5f92cb; --hrt-muttefik-isgal: #3e5f87; --hrt-sscb: #cc5a4d; --hrt-sscb-isgal: #87453e; --hrt-fin: #62a79c;
		--hrt-cephe: #fbf6ea; --hrt-cephe-golge: rgba(0, 0, 0, .45); --hrt-sinir: rgba(255, 255, 255, .34); --hrt-nehir: rgba(120, 160, 180, .4); --hrt-etiket: #f3f1ec; --hrt-etiket-hale: rgba(20, 20, 18, .8);
	}
}

.hrt-giris { max-width: 720px; margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: pretty; }

/* --- sahne --- */
.hrt-kutu { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hrt-sahne { position: relative; height: min(74vh, 780px); min-height: 380px; background: var(--hrt-deniz); }
@media (max-width: 640px) { .hrt-sahne { height: min(92vw, 70vh); min-height: 320px; } }
.hrt-tuval { position: absolute; inset: 0; display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline-offset: -3px; }
.hrt-surukleniyor .hrt-tuval { cursor: grabbing; touch-action: none; }
.hrt-yukleniyor { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 15px; letter-spacing: .04em; }
.hrt-hazir .hrt-yukleniyor { display: none; }
.hrt:not(.hrt-hazir) .hrt-tarih, .hrt:not(.hrt-hazir) .hrt-yakin, .hrt:not(.hrt-hazir) .hrt-lejant { visibility: hidden; }

/* Tarih: eski bir gazeteden kesilmiş tarih satırı.
   Sararmış, lifli kâğıt dokusu (SVG gürültüsü) + kenarlarda kararma + düz dikdörtgen kenar;
   yazı ve cetveller harita.js in eklediği #hrt-murekkep süzgeciyle tipo baskı gibi hafif dağılır.
   Kâğıt iki görünümde de aynıdır. */
.hrt-tarih { position: absolute; top: 16px; left: 14px; padding: 9px 13px 8px; color: #231d16; text-align: center; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)) drop-shadow(0 5px 9px rgba(0, 0, 0, .22)); }
.hrt-tarih::before { content: ""; position: absolute; inset: 0; z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.9%27 numOctaves=%273%27 seed=%277%27/%3E%3CfeColorMatrix values=%270 0 0 0 .32  0 0 0 0 .24  0 0 0 0 .13  0 0 0 .55 -.16%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27300%27 height=%2790%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%27.012 .6%27 numOctaves=%272%27 seed=%273%27/%3E%3CfeColorMatrix values=%270 0 0 0 .3  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .5 -.2%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E"), radial-gradient(120% 90% at 18% 20%, rgba(255, 250, 232, .55), transparent 60%), radial-gradient(90% 120% at 100% 100%, rgba(120, 84, 40, .28), transparent 62%), linear-gradient(178deg, #e6d9b8, #d9c9a2 55%, #cfbd93);
	box-shadow: inset 0 0 14px rgba(110, 76, 34, .38), inset 0 0 2px rgba(80, 55, 25, .5); }
.hrt-gun { display: block; padding: 4px 9px 3px 12px; border-top: 3px double currentColor; border-bottom: 3px double currentColor; font-family: var(--slab); font-size: clamp(17px, 2.4vw, 23px); font-weight: 700; line-height: 1.15; letter-spacing: .15em; text-transform: uppercase; font-variant-numeric: lining-nums; white-space: nowrap; opacity: .9; text-shadow: 0 0 .7px currentColor; }
.hrt-gun::after { content: "."; }
.hrt-gun-alt { display: block; margin-top: 5px; font-family: var(--slab); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; opacity: .74; }
.hrt-hazir .hrt-gun, .hrt-hazir .hrt-gun-alt { filter: url(#hrt-murekkep); }

.hrt-yakin { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; background: var(--bar); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hrt-yakin button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--muted); }
.hrt-yakin button + button { border-top: 1px solid var(--line); }
.hrt-yakin button:hover { background: var(--hover); color: var(--ink); }
.hrt-yakin button:focus-visible { outline-offset: -3px; }

.hrt-lejant { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); background: var(--bar); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); font-size: 13px; }
.hrt-lejant summary { padding: 8px 14px; color: var(--muted); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: 11.5px; cursor: pointer; list-style: none; }
.hrt-lejant summary::-webkit-details-marker { display: none; }
.hrt-lejant summary::after { content: "+"; float: right; margin-left: 14px; font-size: 14px; line-height: 1; }
.hrt-lejant[open] summary::after { content: "–"; }
.hrt-lejant ul { display: grid; grid-template-columns: repeat(2, auto); gap: 5px 18px; padding: 0 14px 12px; }
.hrt-lejant li { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--text); }
.hrt-lejant i { flex: none; width: 16px; height: 11px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.hrt-lejant i.cephe { height: 3px; border-radius: 2px; background: var(--hrt-cephe); box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
@media (max-width: 640px) {
	.hrt-tarih { top: 10px; left: 10px; padding: 5px 6px 5px; }
	.hrt-gun { padding: 3px 7px 2px 9px; letter-spacing: .13em; }
	.hrt-gun-alt { font-size: 9.5px; letter-spacing: .12em; }
	.hrt-yakin { top: 10px; right: 10px; }
	.hrt-yakin button { width: 36px; height: 36px; }
	.hrt-lejant { left: 10px; bottom: 10px; font-size: 12px; }
	.hrt-lejant ul { gap: 4px 12px; padding: 0 10px 9px; }
}

.hrt-ipucu { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 14px; background: var(--band); color: #fff; border-radius: 999px; font-size: 13px; white-space: nowrap; pointer-events: none; }
.hrt-ipucu[hidden] { display: none; }

/* --- zaman çubuğu --- */
.hrt-denetim { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 18px; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.hrt-dugmeler { display: flex; align-items: center; gap: 6px; }
.hrt-dugme { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.hrt-dugme:hover { border-color: var(--ink); color: var(--ink); }
.hrt-dugme svg { width: 18px; height: 18px; }
.hrt-dugme.ana { width: 52px; height: 52px; background: var(--ink); border-color: var(--ink); color: var(--card); }
.hrt-dugme.ana:hover { color: var(--card); opacity: .88; }
.hrt-dugme.ana svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.hrt-dugme .i-dur { display: none; }
.hrt-oynuyor .hrt-dugme .i-oyna { display: none; }
.hrt-oynuyor .hrt-dugme .i-dur { display: block; }

.hrt-cubuk { position: relative; min-width: 0; padding: 18px 0 20px; }
.hrt-cubuk input { --hrt-dolu: 0%; display: block; width: 100%; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hrt-cubuk input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--gold) var(--hrt-dolu), var(--line) var(--hrt-dolu)); }
.hrt-cubuk input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.hrt-cubuk input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
.hrt-cubuk input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -6px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.hrt-cubuk input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); border: 3px solid var(--card); box-shadow: 0 0 0 1px var(--ink); }
.hrt-isaretler { position: absolute; left: 0; right: 0; top: 2px; height: 14px; }
.hrt-isaret { position: absolute; top: 3px; width: 14px; height: 14px; margin-left: -7px; padding: 0; background: none; border: 0; }
.hrt-isaret::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%; background: var(--faint); transition: transform .15s; }
.hrt-isaret.buyuk::before { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--gold-ink); }
.hrt-isaret:hover::before, .hrt-isaret.on::before { transform: scale(1.5); background: var(--ink); }
.hrt-aylar { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; color: var(--faint); font-size: 11.5px; letter-spacing: .04em; pointer-events: none; }
.hrt-aylar span { position: absolute; top: 0; padding-left: 5px; border-left: 1px solid var(--line); line-height: 16px; white-space: nowrap; }
@media (max-width: 640px) { .hrt-aylar span:nth-child(even) { display: none; } }

.hrt-secenekler { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hrt-secenekler label { display: inline-flex; align-items: center; gap: 8px; }
.hrt-secenekler input, .hrt-secenekler select { height: 38px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; font-size: 15px; font-variant-numeric: tabular-nums; }
.hrt-secenekler input:hover, .hrt-secenekler select:hover { border-color: var(--faint); }
.hrt-klavye { margin-left: auto; color: var(--faint); font-size: 13px; }
@media (max-width: 860px) { .hrt-klavye { display: none; } }
@media (max-width: 640px) {
	.hrt-denetim { grid-template-columns: 1fr; padding: 14px 12px 16px; }
	.hrt-dugmeler { justify-content: center; }
	.hrt-secenekler { justify-content: center; }
}

/* --- olay paneli --- */
.hrt-panel { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 900px) { .hrt-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; } }
.hrt-olay { min-height: 150px; }
.hrt-olay h3 { margin-top: 6px; font-family: var(--slab); font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.hrt-olay-metin { margin-top: 12px; max-width: 62ch; color: var(--text); font-size: 17.5px; line-height: 1.6; text-wrap: pretty; }
.hrt-olay-ust { margin-top: 22px; color: var(--gold-ink); font-size: 12.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hrt-yazilar { margin-top: 8px; border-top: 1px solid var(--line); }
.hrt-yazilar li { border-bottom: 1px solid var(--line); }
.hrt-yazilar a { display: block; padding: 11px 26px 11px 0; position: relative; font-size: 16.5px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.hrt-yazilar a::after { content: "→"; position: absolute; right: 2px; top: 11px; color: var(--gold-ink); transition: transform .15s; }
.hrt-yazilar a:hover { color: var(--gold-ink); }
.hrt-yazilar a:hover::after { transform: translateX(3px); }

.hrt-liste { max-height: 430px; overflow-y: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
.hrt-liste li { border-bottom: 1px solid var(--line); }
.hrt-liste button { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline; width: 100%; padding: 10px 8px 10px 10px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; }
.hrt-liste button:hover { background: var(--hover); }
.hrt-liste button[aria-current="true"] { border-left-color: var(--gold); background: var(--gold-soft); }
.hrt-liste-tarih { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hrt-liste-baslik { font-size: 15.5px; font-weight: 500; line-height: 1.3; }

.hrt-not { margin-top: 40px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius); color: var(--muted); font-size: 15px; line-height: 1.6; }
.hrt-not strong { color: var(--ink); font-weight: 600; }
.hrt-not p + p { margin-top: 8px; }
.hrt-not a { color: var(--gold-ink); }
@media (prefers-reduced-motion: reduce) { .hrt-isaret::before, .hrt-yazilar a::after { transition: none; } }

/* --- ana sayfadaki bölüm olarak --- */
.hrt-ana { padding-bottom: 0; }
.hrt-ana .hrt-sahne { height: min(66vh, 640px); }
@media (max-width: 640px) { .hrt-ana .hrt-sahne { height: min(92vw, 66vh); } }
.hrt-ana .hrt-panel { margin-top: 26px; }
.hrt-ana .hrt-panel .bolum-bas h3 { font-size: 14px; }
.hrt-ana .hrt-liste { max-height: 300px; }
.uyari-sar + .hrt-ana { padding-top: 20px; } /* okuyucu notunun hemen altında: bölüm boşluğu kısalır */
