/* =====================================================================
   Karşılama sayfası (herkese açık okul tanıtım sayfası ve editör önizlemesi). Panel stilinden bağımsızdır; yalnızca bu dosya ve
   /karsilama/renk.css yüklenir. Okulun renkleri --p-ana, --p-vurgu ve --p-on-ana değişkenleriyle gelir (renk.css, iki temada okunaklı türetilmiş).
   Tema: tarayıcı tercihi (prefers-color-scheme); önizleme çerçevesinde editör data-theme ile zorlar. Dış kaynak, font indirmesi ve JS yoktur.
   ===================================================================== */
:root {
    --p-bg: #ffffff; --p-surface: #f6f7f8; --p-border: #e1e4e8; --p-text: #171a1f; --p-muted: #545a64; --p-tint-pct: 8%;
    --p-ana: #1e3a8a; --p-vurgu: #0e7490; --p-on-ana: #ffffff;
    --p-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --p-head: var(--p-font);
    color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) { --p-bg: #121417; --p-surface: #1a1d21; --p-border: #2d3137; --p-text: #ececec; --p-muted: #a7acb4; --p-tint-pct: 16%; }
}
:root[data-theme="dark"] { --p-bg: #121417; --p-surface: #1a1d21; --p-border: #2d3137; --p-text: #ececec; --p-muted: #a7acb4; --p-tint-pct: 16%; color-scheme: dark; }

/* Yazı biçimi: yalnız sistem yazı tipi yığınları (dosya indirilmez). */
body.ks[data-font="klasik"] { --p-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
body.ks[data-font="yumusak"] { --p-font: ui-rounded, "Avenir Next", "Trebuchet MS", system-ui, sans-serif; --p-head: var(--p-font); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--p-bg); }
body.ks { margin: 0; background: var(--p-bg); color: var(--p-text); font: 16px/1.6 var(--p-font); overflow-x: hidden; }
.ks h1, .ks h2, .ks h3 { font-family: var(--p-head); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.ks p { margin: 0; }
.ks a { color: var(--p-ana); }
.ks :focus-visible { outline: 2px solid var(--p-ana); outline-offset: 2px; }
.ks img { display: block; max-width: 100%; }
.ks-atla { position: absolute; left: -9999px; top: 8px; background: var(--p-bg); color: var(--p-text); padding: 8px 14px; border: 2px solid var(--p-ana); border-radius: 8px; z-index: 10; }
.ks-atla:focus { left: 8px; }

.p-wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* Üst şerit */
.p-top { border-bottom: 1px solid var(--p-border); background: var(--p-bg); }
.p-top .p-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.ks a.p-brand { display: flex; align-items: center; gap: 10px; font-family: var(--p-head); font-weight: 700; font-size: 18px; min-width: 0; color: var(--p-text); text-decoration: none; }
.p-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-logo { width: 36px; height: 36px; border-radius: 8px; background: var(--p-ana); color: var(--p-on-ana); display: grid; place-items: center; flex: none; overflow: hidden; }
.p-logo.p-logo-resim { background: transparent; }
.p-logo img { width: 36px; height: 36px; object-fit: contain; }

/* Düğmeler */
.ks a.p-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 8px; border: 2px solid var(--p-ana); font-weight: 600; font-size: 15px; text-decoration: none; text-align: center; transition: background-color .12s, transform .12s; }
.ks a.p-btn-p { background: var(--p-ana); color: var(--p-on-ana); }
.ks a.p-btn-o { background: var(--p-bg); color: var(--p-ana); }
.ks a.p-btn:hover { transform: translateY(-1px); }
.ks a.p-btn-p:hover { background: color-mix(in srgb, var(--p-ana) 88%, var(--p-text)); }
.ks a.p-btn-o:hover { background: color-mix(in srgb, var(--p-ana) 8%, var(--p-bg)); }

/* Kapak */
.p-cover { background: color-mix(in srgb, var(--p-ana) var(--p-tint-pct), var(--p-bg)); }
.p-cover .p-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.p-cover h1 { font-size: clamp(28px, 3.6vw + 8px, 48px); font-weight: 700; }
.p-cover .lead { margin-top: 16px; font-size: clamp(16px, .6vw + 14px, 19px); color: var(--p-muted); max-width: 46ch; white-space: pre-line; }
.p-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.p-cover.noimg .p-wrap { grid-template-columns: minmax(0, 1fr); }
.p-img { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--p-border); background: color-mix(in srgb, var(--p-ana) 12%, var(--p-bg)); }
.p-img img { width: 100%; height: 100%; object-fit: cover; }

/* Bölümler */
.p-sec { padding: 56px 0; border-top: 1px solid var(--p-border); }
.p-cover + .p-sec, .p-cover[hidden] + .p-sec { border-top: 0; }
.p-bar { display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--p-vurgu); margin-bottom: 14px; }
.p-sec h2 { font-size: clamp(24px, 2vw + 12px, 32px); font-weight: 700; }
.p-h1 { font-size: clamp(26px, 2.4vw + 12px, 36px); font-weight: 700; }
.p-not { margin-top: 8px; color: var(--p-muted); font-size: 14px; }
.p-geri { margin-top: 28px; }
.p-two { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.p-two.solo { grid-template-columns: minmax(0, 1fr); }
.p-text { margin-top: 16px; max-width: 62ch; }
.p-text p { white-space: pre-line; }
.p-text p + p { margin-top: 14px; }
.p-uzun { white-space: pre-line; max-width: 72ch; }
.p-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 28px; }
.p-card { padding: 20px; border: 1px solid var(--p-border); border-radius: 12px; background: var(--p-surface); }
.p-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--p-ana); background: color-mix(in srgb, var(--p-ana) 12%, var(--p-bg)); margin-bottom: 14px; }
.p-card h3 { font-size: 18px; font-weight: 700; }
.p-card p { margin-top: 8px; font-size: 15px; color: var(--p-muted); }
.p-kad { border-top: 4px solid var(--p-vurgu); background: var(--p-surface); border-radius: 0 0 12px 12px; padding: 18px 20px; border-left: 1px solid var(--p-border); border-right: 1px solid var(--p-border); border-bottom: 1px solid var(--p-border); }
.p-kad h3 { font-size: 18px; font-weight: 700; }
.p-kad p { margin-top: 6px; font-size: 15px; color: var(--p-muted); }
.p-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 28px; }
.p-gal figure { margin: 0; }
.p-gal figcaption { margin-top: 6px; font-size: 14px; color: var(--p-muted); }

/* İletişim */
.p-ct { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.p-ct.tek { grid-template-columns: minmax(0, 1fr); }
.p-camps { display: grid; gap: 14px; }
.p-camp, .p-info { padding: 20px; border: 1px solid var(--p-border); border-radius: 12px; background: var(--p-surface); }
.p-camp h3, .p-info h3 { font-size: 18px; font-weight: 700; }
.p-camp p, .p-info p { margin-top: 6px; font-size: 15px; color: var(--p-muted); }
.p-camp a, .p-info a:not(.p-btn) { font-weight: 600; }
.p-info .p-btn { margin-top: 16px; }
.p-info dl { margin: 10px 0 0; display: grid; gap: 10px; }
.p-info dt { font-size: 13.5px; color: var(--p-muted); }
.p-info dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }

/* Alt bilgi */
.p-foot { border-top: 1px solid var(--p-border); padding: 24px 0; font-size: 14px; color: var(--p-muted); background: var(--p-surface); }
.p-foot .p-wrap { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 640px) {
    .p-wrap { padding: 0 16px; }
    .p-top .p-wrap { min-height: 56px; }
    .ks a.p-brand { font-size: 16px; }
    .p-cover .p-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
    .p-cover .p-img { order: -1; aspect-ratio: 16 / 10; }
    .p-actions { flex-direction: column; align-items: stretch; margin-top: 22px; }
    .p-sec { padding: 36px 0; }
    .p-two, .p-ct { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .p-cards { margin-top: 20px; }
    .p-gal, .p-ct { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ks a.p-btn { transition: none; }
    .ks a.p-btn:hover { transform: none; }
}
@media print {
    .p-actions, .ks-atla { display: none; }
}
