/* CvFaction — rehber / makale sayfaları */

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

body.guide-page .guide-main {
    flex: 1;
    width: 100%;
}

.guide-hero {
    padding: 40px 0 28px;
}

.guide-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.guide-crumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.guide-crumb a:hover {
    text-decoration: underline;
}

.guide-crumb span[aria-hidden="true"] {
    opacity: 0.5;
}

.guide-sticker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.guide-hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    max-width: 18ch;
}

.guide-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 62ch;
    margin-bottom: 18px;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.guide-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.guide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
    padding-bottom: 64px;
}

.guide-article {
    background: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: clamp(24px, 4vw, 40px);
}

.guide-article h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 1.75em 0 0.65em;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.guide-article h2:first-child {
    margin-top: 0;
}

.guide-article h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 1.35em 0 0.5em;
    color: var(--text-primary);
}

.guide-article p,
.guide-article li {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.guide-article p {
    margin-bottom: 1em;
}

.guide-article ul,
.guide-article ol {
    margin: 0 0 1.15em;
    padding-left: 1.25em;
}

.guide-article li {
    margin-bottom: 0.45em;
}

.guide-article li::marker {
    color: var(--primary);
}

.guide-article a:not(.btn) {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.guide-article a.btn {
    text-decoration: none;
}

.guide-article a.btn-primary,
.guide-cta-inline a.btn-primary {
    color: #ffffff;
}

.guide-article a.btn-primary:hover,
.guide-cta-inline a.btn-primary:hover {
    color: #ffffff;
}

.guide-article a.btn-secondary,
.guide-cta-inline a.btn-secondary {
    color: var(--primary);
}

.guide-callout {
    margin: 1.5em 0;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 2px solid #0f172a;
    box-shadow: 3px 3px 0 #0f172a;
    background: #ecfeff;
}

.guide-callout--warn {
    background: #fff7ed;
}

.guide-callout--ok {
    background: #ecfdf5;
}

.guide-callout strong {
    display: block;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 6px;
}

.guide-callout p {
    margin: 0;
    font-size: 14.5px;
}

.guide-example {
    margin: 1.4em 0;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(14, 116, 144, 0.06);
    border: 1px solid rgba(14, 116, 144, 0.14);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.guide-cta-inline {
    margin: 2em 0 0.5em;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.1), rgba(3, 105, 161, 0.08));
    border: 1px solid rgba(14, 116, 144, 0.18);
    text-align: center;
}

.guide-cta-inline h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.guide-cta-inline p {
    margin: 0 0 14px;
}

.guide-aside {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-toc,
.guide-aside-card {
    background: var(--bg-surface-opaque);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.guide-toc h2,
.guide-aside-card h2 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 12px;
    font-family: var(--font-heading);
}

.guide-toc ol {
    margin: 0;
    padding-left: 1.1em;
}

.guide-toc li {
    margin-bottom: 8px;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--text-secondary);
}

.guide-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.guide-toc a:hover {
    color: var(--primary);
}

.guide-aside-card p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0 0 12px;
}

.guide-related {
    padding: 8px 0 56px;
}

.guide-related h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.guide-related > .container > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-surface-opaque);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.guide-card .lm-sticker {
    align-self: flex-start;
    transform: none;
}

.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin: 0;
    color: var(--text-primary);
}

.guide-card p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.guide-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    padding-bottom: 24px;
}

.guide-page .cf-ad-wrap {
    margin: 8px auto 28px;
    max-width: 728px;
}

.guide-page .cf-ad-wrap[data-cf-ad="guideMid"] {
    margin-top: 8px;
    margin-bottom: 32px;
}

.guide-page .cf-ad-wrap[data-cf-ad="guideFooter"] {
    margin-top: 8px;
    margin-bottom: 40px;
}

.guide-hub-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 2px solid #0f172a;
    box-shadow: 4px 4px 0 #0f172a;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guide-hub-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 #0f172a;
}

.guide-hub-card h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.25;
}

.guide-hub-card p {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.guide-hub-card .guide-hub-meta {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

@media (max-width: 920px) {
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-aside {
        position: static;
        order: -1;
    }

    .guide-toc {
        display: none;
    }

    .guide-hero h1 {
        max-width: none;
    }
}

@media (max-width: 600px) {
    body.guide-page .ambient-glow {
        display: none;
    }
}
