/* Guide pages (/kpss-ne-zaman, /kpss-konulari, /kpss-net-hesaplama).
 * Loaded after landing-tokens.css and landing.css; tokens only, both themes.
 * Design rules (landing/README.md): solid colour blocks, 2px ink borders,
 * chunky bottom shadows. No blue, no gradients, no glass. */

.guide-shell { max-width: 880px; }
.guide-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Breadcrumb */
.guide-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--ld-text-muted); }
.guide-crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--ld-border-strong); opacity: .45; }
.guide-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ld-text); text-decoration: underline; text-decoration-color: var(--ld-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Hero */
.guide-hero { display: grid; gap: 12px; margin-bottom: 24px; }
.guide-title {
    margin: 0; color: var(--ld-text); font-family: var(--ld-font-display); font-weight: 800;
    font-size: clamp(32px, 5.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.guide-meta { margin: 0; color: var(--ld-text-muted); font-size: 15px; font-weight: 700; }

/* Direct answer: the block answer engines quote */
.guide-answer {
    margin: 0 0 28px; padding: clamp(18px, 3vw, 26px);
    background: var(--ld-bg-mint); color: var(--ld-text);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-lg);
    box-shadow: var(--ld-shadow-card-lg);
}
.guide-answer h2 { margin: 0 0 8px; font-family: var(--ld-font-display); font-size: 16px; font-weight: 800; color: var(--ld-accent-on-mint, var(--ld-text)); }
:root[data-theme="dark"] .guide-answer h2 { color: var(--ld-primary); }
.guide-answer p { margin: 0; max-width: 66ch; font-size: clamp(17px, 2.2vw, 19px); line-height: 1.6; font-weight: 700; }

/* Lead block: countdown, chart or calculator above the article */
.guide-lead { margin: 0 0 28px; }
.guide-lead h2 { margin: 0 0 14px; font-family: var(--ld-font-display); font-weight: 800; font-size: clamp(22px, 3.2vw, 27px); color: var(--ld-text); }
.guide-lead--panel {
    padding: clamp(18px, 3.4vw, 28px); background: var(--ld-surface);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-lg); box-shadow: var(--ld-shadow-card-lg);
}
.guide-lead .guide-note { margin: 12px 0 0; }
.guide-lead__empty { margin: 0; padding: 16px 18px; background: var(--ld-bg-soft); border: 2px dashed var(--ld-border-strong); border-radius: var(--ld-radius-md); font-weight: 700; }

/* Article measure and rhythm */
.guide-article p { margin: 0 0 14px; }
.guide-article :is(ul, ol) { margin: 0 0 16px; }
.guide-article > :is(p, ul, ol, h2, h3) { max-width: 68ch; }
.guide-article > h2:first-child { margin-top: 0; }
.guide-article h2 { font-family: var(--ld-font-display); scroll-margin-top: 90px; text-wrap: balance; }
.guide-article h3 { font-family: var(--ld-font-display); scroll-margin-top: 90px; }
.guide-article a,
.guide-faq a, .guide-sources a, .guide-cta__more a {
    color: var(--ld-text); font-weight: 700; text-decoration: underline;
    text-decoration-color: var(--ld-primary); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.guide-article a:hover, .guide-sources a:hover, .guide-cta__more a:hover { text-decoration-color: currentColor; }
.guide-note { color: var(--ld-text-muted) !important; font-size: 15px !important; line-height: 1.6 !important; }
.guide-h-note { color: var(--ld-text-muted); font-size: .8em; font-weight: 700; }
.guide-formula {
    margin: 18px 0; padding: 14px 18px; max-width: none !important;
    background: var(--ld-bg-soft); border: 2px solid var(--ld-border-strong); border-left-width: 8px; border-left-color: var(--ld-primary);
    border-radius: var(--ld-radius-sm); font-family: var(--ld-font-display); font-weight: 800; font-size: clamp(16px, 2.4vw, 20px) !important;
    overflow-wrap: anywhere;
}
.guide-formula span { color: var(--ld-text); }
.guide-steps { padding-left: 24px; }
.guide-steps li { margin-bottom: 6px; }
.guide-topics { list-style: none; padding: 0 !important; margin: 0 0 8px; border-top: 1px solid var(--ld-border); }
.guide-topics li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--ld-border); }
.guide-pct { flex: 0 0 auto; font-family: var(--ld-font-display); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Tables: scroll horizontally inside their own region on small screens */
.guide-table {
    margin: 20px 0 22px; overflow-x: auto; max-inline-size: 100%;
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-md); background: var(--ld-surface);
    overscroll-behavior-x: contain;
}
.guide-table:focus-visible { outline: 3px solid var(--ld-primary); outline-offset: 3px; }
.gundem-article .guide-table table { margin: 0; border: 0; border-radius: 0; font-size: 15px; }
.gundem-article .guide-table--wide table { min-width: 620px; }
.gundem-article .guide-table--nowrap td { white-space: nowrap; }
.gundem-article .guide-table--wide th[scope="row"] { min-width: 16ch; }
.gundem-article .guide-table__title { margin: 22px 0 8px; font-weight: 800; font-size: 15px; color: var(--ld-text); }
.gundem-article .guide-table__title + .guide-table { margin-top: 0; }
.gundem-article .guide-table th[scope="row"] { background: transparent; font-weight: 800; }
.gundem-article .guide-table td, .gundem-article .guide-table th { font-variant-numeric: tabular-nums; }
.guide-status { display: inline-block; padding: 3px 10px; border-radius: var(--ld-radius-pill); font-size: 13px; font-weight: 800; white-space: nowrap; border: 1px solid var(--ld-border); }
.guide-status--done { background: var(--ld-bg-soft); color: var(--ld-text-muted); }
.guide-status--next { background: var(--ld-bg-mint); color: var(--ld-text); border-color: var(--ld-border-strong); }

/* Countdown */
.guide-countdowns { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 18px 0 12px; }
.guide-countdown {
    display: grid; gap: 6px; padding: 20px 22px;
    background: var(--ld-bg-cream); color: var(--ld-text);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-lg); box-shadow: var(--ld-shadow-card-lg);
}
.guide-countdown__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.guide-countdown__name { margin: 0; font-size: 18px; line-height: 1.3; }
.guide-countdown p { margin: 0; font-size: 16px; }
.guide-countdown__date { font-weight: 800; }
.guide-countdown__days { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px; line-height: 1; }
.guide-countdown__num {
    font-family: var(--ld-font-display); font-weight: 800; font-size: clamp(64px, 14vw, 104px);
    line-height: .9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
}
.guide-countdown__unit { font-family: var(--ld-font-display); font-weight: 800; font-size: 20px; }
.guide-countdown__live { min-height: 1.6em; color: var(--ld-text-muted); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-countdown__live[hidden] { display: block; visibility: hidden; }
.guide-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: var(--ld-radius-pill); border: 2px solid var(--ld-border-strong); font-size: 13px; font-weight: 800; white-space: nowrap; }
.guide-badge--official { background: var(--ld-bg-mint); color: var(--ld-text); }
.guide-badge--estimate { background: var(--ld-orange); color: #1B1B1B; border-color: #1B1B1B; }

/* Question strips (konular) */
.guide-strips { display: grid; gap: 22px; margin: 0 0 14px; }
.guide-strip-figure { margin: 0; }
.guide-strip__title { margin-bottom: 8px; font-family: var(--ld-font-display); font-weight: 800; font-size: 18px; color: var(--ld-text); }
.guide-strip__title span { color: var(--ld-text-muted); font-size: 15px; }
.guide-strip {
    display: flex; height: 58px; overflow: hidden;
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-md); box-shadow: var(--ld-shadow-card);
}
.guide-strip__seg {
    display: flex; align-items: center; justify-content: center; min-width: 0;
    font-family: var(--ld-font-display); font-weight: 800; font-size: clamp(15px, 3vw, 22px); color: #1B1B1B;
    font-variant-numeric: tabular-nums;
}
.guide-strip .guide-strip__seg + .guide-strip__seg { border-left: 2px solid var(--ld-border-strong); }
.guide-strip__seg--turkce { flex: 30 1 0; background: var(--ld-primary); }
.guide-strip__seg--matematik { flex: 30 1 0; background: var(--ld-warm); }
.guide-strip__seg--tarih { flex: 27 1 0; background: var(--ld-primary); }
.guide-strip__seg--cografya { flex: 18 1 0; background: var(--ld-warm); }
.guide-strip__seg--vatandaslik { flex: 9 1 0; background: var(--ld-orange); }
.guide-strip__seg--guncel { flex: 6 1 0; background: var(--ld-ink); color: var(--ld-text-inverse); }
.guide-strip__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; color: var(--ld-text-muted); }
.guide-strip__legend li { display: inline-flex; align-items: center; gap: 7px; }
.guide-strip__legend b { color: var(--ld-text); }
.guide-strip__swatch { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--ld-border-strong); border-radius: 4px; flex: none; }

/* Net calculator */
.guide-calc {
    margin: 0 0 28px; padding: clamp(18px, 3.4vw, 28px);
    background: var(--ld-surface); color: var(--ld-text);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-lg); box-shadow: var(--ld-shadow-card-lg);
}
.guide-calc h2 { margin: 0 0 6px; }
.guide-calc__intro { margin: 0 0 16px; color: var(--ld-text-muted); font-size: 16px; }
.guide-calc__nojs { margin: 0 0 16px; padding: 12px 14px; background: var(--ld-bg-cream); border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-sm); font-size: 15px; }
.guide-calc__form { display: grid; gap: 18px; }
.guide-calc__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.guide-calc__group legend { padding: 0; margin-bottom: 6px; font-family: var(--ld-font-display); font-weight: 800; font-size: 20px; }
.guide-calc__group legend span { color: var(--ld-text-muted); font-size: 15px; font-weight: 700; }
.guide-calc__row {
    display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px 72px; align-items: end; gap: 6px 12px;
    padding: 12px 0; border-bottom: 1px solid var(--ld-border);
}
.guide-calc__subject { margin: 0; align-self: center; font-weight: 800; font-size: 17px; line-height: 1.3; }
.guide-calc__subject span { display: block; color: var(--ld-text-muted); font-size: 13px; font-weight: 700; }
.guide-calc__field { display: grid; gap: 4px; }
.guide-calc__field label { font-size: 13px; font-weight: 800; color: var(--ld-text-muted); }
.guide-calc__field input {
    width: 100%; height: 48px; padding: 0 8px;
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-sm);
    background: var(--ld-bg); color: var(--ld-text);
    font: 800 19px/1 var(--ld-font-display); text-align: center; font-variant-numeric: tabular-nums;
    -moz-appearance: textfield; appearance: textfield;
}
.guide-calc__field input::-webkit-outer-spin-button,
.guide-calc__field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guide-calc__field input:focus-visible { outline: 3px solid var(--ld-primary); outline-offset: 2px; }
.guide-calc__field input[aria-invalid="true"] { border-color: var(--ld-alert); background: var(--ld-bg-rose); }
.guide-calc__net { margin: 0; display: grid; justify-items: end; gap: 4px; font-size: 13px; }
.guide-calc__net-label { font-weight: 800; color: var(--ld-text-muted); }
.guide-calc__net output { display: flex; align-items: center; justify-content: flex-end; height: 48px; font: 800 21px/1 var(--ld-font-display); font-variant-numeric: tabular-nums; }
.guide-calc__msg { grid-column: 1 / -1; margin: 2px 0 0; font-size: 14px; font-weight: 700; line-height: 1.5; }
.guide-calc__msg[data-tone="error"] { color: var(--ld-alert-shadow); }
:root[data-theme="dark"] .guide-calc__msg[data-tone="error"] { color: var(--ld-alert); }
.guide-calc__msg[data-tone="note"] { color: var(--ld-text-muted); padding-left: 10px; border-left: 4px solid var(--ld-orange); }
.guide-calc__msg--test { margin-top: 8px; }
.guide-calc__test { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 0; font-weight: 800; font-size: 16px; }
.guide-calc__test output { font: 800 26px/1 var(--ld-font-display); font-variant-numeric: tabular-nums; }
.guide-calc__total {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 18px; background: var(--ld-ink); color: var(--ld-text-inverse);
    border-radius: var(--ld-radius-md);
}
.guide-calc__total p { display: flex; align-items: baseline; gap: 14px; margin: 0; color: inherit; font-weight: 800; font-size: 17px; }
.guide-calc__total output { font: 800 clamp(34px, 6vw, 44px)/1 var(--ld-font-display); font-variant-numeric: tabular-nums; }
.guide-calc__reset { min-height: 44px; padding: 10px 20px; }

/* FAQ */
.guide-faq { margin-top: 32px; }
.guide-faq h2, .guide-sources h2, .guide-related h2, .guide-cta h2 {
    margin: 0 0 14px; font-family: var(--ld-font-display); font-weight: 800; font-size: clamp(22px, 3.2vw, 27px); color: var(--ld-text);
}
.guide-faq__item {
    margin-bottom: 10px; background: var(--ld-surface); color: var(--ld-text);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-md);
}
.guide-faq__item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none;
    font-weight: 800; font-size: 17px; line-height: 1.4;
}
.guide-faq__item summary::-webkit-details-marker { display: none; }
.guide-faq__item summary::after {
    content: "+"; flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 2px solid var(--ld-border-strong); border-radius: 50%;
    font: 800 18px/1 var(--ld-font-display); transition: transform var(--ld-transition-fast);
}
.guide-faq__item[open] summary::after { content: "−"; }
.guide-faq__item summary:focus-visible { outline: 3px solid var(--ld-primary); outline-offset: 2px; border-radius: var(--ld-radius-md); }
.guide-faq__item p { margin: 0; padding: 0 16px 16px; max-width: 68ch; color: var(--ld-text); font-size: 16px; line-height: 1.7; }

/* App CTA (single per page) */
.guide-cta {
    margin-top: 32px; padding: clamp(20px, 3.6vw, 30px);
    background: var(--ld-warm); color: #1B1B1B;
    border: 2px solid #1B1B1B; border-radius: var(--ld-radius-lg); box-shadow: 0 6px 0 #1B1B1B;
}
.guide-cta h2 { color: #1B1B1B; }
.guide-cta p { margin: 0 0 16px; max-width: 62ch; font-size: 17px; line-height: 1.6; font-weight: 600; }
.guide-cta__stores { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.guide-cta .ld-store { background: #1B1B1B; color: #FFFFFF; border-color: #1B1B1B; box-shadow: 0 4px 0 #000000; }
.guide-cta .ld-store:hover { background: #2E2E2E; }
.guide-cta .ld-store:focus-visible { outline: 3px solid #1B1B1B; outline-offset: 3px; }
.guide-cta .guide-cta__more { margin: 0; }
.guide-cta .guide-cta__more a { color: #1B1B1B; text-decoration-color: #1B1B1B; display: inline-flex; align-items: center; min-height: 44px; }

/* Sources + disclaimer */
.guide-sources { margin-top: 32px; }
.guide-sources ul { margin: 0 0 14px; padding-left: 20px; }
.guide-sources li { margin-bottom: 2px; line-height: 1.5; }
.guide-sources li a { display: inline-block; padding: 10px 0; }
.guide-disclaimer { margin: 0; padding: 12px 14px; max-width: 70ch; background: var(--ld-bg-soft); border: 1px solid var(--ld-border); border-radius: var(--ld-radius-sm); color: var(--ld-text-muted); font-size: 14px; line-height: 1.6; font-weight: 600; }

/* Related guides */
.guide-related { margin-top: 32px; }
.guide-related ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.guide-related a {
    display: grid; gap: 4px; padding: 16px 18px; min-height: 44px;
    background: var(--ld-surface); color: var(--ld-text);
    border: 2px solid var(--ld-border-strong); border-radius: var(--ld-radius-md); box-shadow: var(--ld-shadow-card);
    transition: transform var(--ld-transition-fast), box-shadow var(--ld-transition-fast);
}
.guide-related a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ld-border-strong); }
.guide-related a:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ld-border-strong); }
.guide-related__title { font-family: var(--ld-font-display); font-weight: 800; font-size: 18px; }
.guide-related__desc { color: var(--ld-text-muted); font-size: 15px; line-height: 1.5; font-weight: 600; }

@media (max-width: 560px) {
    .guide-calc__row { grid-template-columns: 1fr 1fr 72px; }
    .guide-calc__subject { grid-column: 1 / -1; }
    .guide-strip { height: 50px; }
    .guide-cta .ld-store { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .guide-related a, .guide-faq__item summary::after { transition: none; }
    .guide-related a:hover { transform: none; }
}

