/* --- BRAND IDENTITY: COGNITIVE LOGISTICS v2.8 (MASTER) --- */

:root {
    /* --- PALETTE --- */
    --color-stochastic-navy: #0B1E3B;
    --color-cognitive-blue:  #217EAA;
    
    --color-signal-white:    #F2F2F3;
    /* Increased opacity for Surgical Precision/Readability */
    --color-text-muted:      rgba(242, 242, 243, 0.85); 
    --color-prob-white:      #FFFFFF;

    /* ACCENTS */
    --color-prob-cyan:       #00D4FF;
    --color-critical-orange: #FF6B35;
    --color-card-bg:         rgba(11, 30, 59, 0.75);
    --color-border:          rgba(33, 126, 170, 0.35);

    /* TYPOGRAPHY */
    --font-head: 'Montserrat', sans-serif; 
    --font-body: 'Inter', sans-serif;      
    --font-code: 'JetBrains Mono', monospace; 

    --border-radius-tech: 2px;
}

/* --- BASE STYLES --- */
body {
    font-family: var(--font-body);
    background-color: var(--color-stochastic-navy);
    color: var(--color-signal-white);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    
    /* Deep Tech Background */
    background-image: 
        radial-gradient(circle at 20% 40%, rgba(33, 126, 170, 0.12), transparent 45%),
        radial-gradient(circle at 80% 60%, rgba(0, 212, 255, 0.05), transparent 45%);
    background-attachment: fixed;
}

@media (hover: none) and (pointer: coarse) {
    body { background-attachment: scroll; }
}

/* Optimized Scanlines */
.scanlines {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0,0,0,0) 0px,
        rgba(0,0,0,0) 1px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 3px
    );
    pointer-events: none;
    z-index: 50;
    opacity: 0.15;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
p { text-shadow: none; }

.font-mono, code, .stat-number {
    font-family: var(--font-code);
    color: var(--color-prob-cyan);
}

/* Keyboard Focus Visibility */
a:focus-visible, button:focus-visible { outline: none; }
a:focus-visible .project-card, 
button:focus-visible {
    border-color: var(--color-prob-cyan);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}
.nav-item:focus-visible, .footer-content a:focus-visible {
    outline: 2px solid var(--color-prob-cyan);
    outline-offset: 4px;
    border-radius: 2px;
}

/* --- NAVBAR --- */
.navbar {
    display: flex;
    justify-content: center;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(11, 30, 59, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-item { 
    font-family: var(--font-code);
    font-size: 0.8rem; 
    font-weight: 700; 
    color: rgba(242, 242, 243, 0.6); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    position: relative;
}
.nav-item:hover, .nav-item.active { color: var(--color-prob-cyan); }
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 4px;
    background-color: var(--color-prob-cyan);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-prob-cyan);
}

/* --- CONTAINER --- */
.container {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    flex: 1;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 4rem 0 3rem 0;
}
.hero-content { max-width: 780px; position: relative; }

.hero-meta {
    display: flex; align-items: center; gap: 12px; margin-bottom: 1.2rem;
}
.hero-id {
    font-family: var(--font-code); color: var(--color-prob-cyan); 
    font-size: 0.85rem; letter-spacing: 0.5px;
}

h1 {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -2px;
    color: var(--color-signal-white);
    text-transform: uppercase;
    line-height: 1.1;
}

.text-cognitive-blue { color: var(--color-cognitive-blue); }
.text-cyan { color: var(--color-prob-cyan); }
.text-orange { color: var(--color-critical-orange); }

.bio { 
    margin-bottom: 2.5rem; color: var(--color-text-muted); 
    font-size: 1.25rem; max-width: 720px; font-weight: 400;
}
/* New utility for wider bio blocks (used in Modules page) */
.bio.wide { max-width: 800px; color: var(--color-signal-white); margin-left: 0; }

.hero-proof {
    display: inline-block;
    background: rgba(0, 212, 255, 0.06);
    border-left: 3px solid var(--color-prob-cyan);
    padding: 0.6rem 1rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--color-prob-cyan);
    margin-bottom: 2rem;
    font-weight: 600;
}

.proof-chips {
    display: flex; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.chip {
    display: flex; flex-direction: column; justify-content: center;
    background: rgba(11, 30, 59, 0.6);
    border: 1px solid rgba(33, 126, 170, 0.5);
    padding: 10px 16px;
    border-radius: var(--border-radius-tech);
    min-width: 110px;
    backdrop-filter: blur(4px);
    transition: transform 0.2s;
}
.chip:hover { transform: translateY(-2px); border-color: var(--color-prob-cyan); }
.chip-label {
    font-family: var(--font-code); font-size: 0.65rem; color: var(--color-text-muted);
    text-transform: uppercase; margin-bottom: 2px; letter-spacing: 1px;
}
.chip-val {
    font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
    color: var(--color-prob-cyan); letter-spacing: 0.5px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@keyframes blink { 50% { opacity: 0; } }
.system-status {
    font-family: var(--font-code); color: var(--color-prob-cyan);
    font-size: 0.8rem; display: inline-block;
    border: 1px solid var(--color-border); padding: 4px 8px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 2px; letter-spacing: 0.5px; font-weight: 700;
}
.system-status::after {
    content: '█'; margin-left: 6px; animation: blink 1s infinite; opacity: 0.9;
}

/* --- SECTION HEADERS & VIEW ALL BUTTONS --- */
/* --- SECTION HEADERS & VIEW ALL BUTTONS --- */

.section-title {
    font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
    color: var(--color-signal-white); margin-bottom: 2.5rem;
    text-transform: uppercase; letter-spacing: 1.5px; 
    border-bottom: 3px solid var(--color-critical-orange); 
    padding-bottom: 8px; display: inline-block;
}

/* Headbar DÜZELTİLDİ: Artık Flex değil, normal blok. */
.section-headbar {
    position: relative; /* Butonu buna göre hizalayacağız */
    display: block;     /* Başlığın ortalanmasına izin ver */
    margin-top: 4rem;      
    margin-bottom: 2.5rem; 
    text-align: center; /* İçindekileri (Başlığı) ortala */
}

.section-headbar .section-title {
    margin-bottom: 0;
}

.view-all-link {
    font-family: var(--font-code);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius-tech);
    
    transition: all 0.2s ease;
    
    /* KRİTİK AYAR: Butonu sağa çiviliyoruz */
    position: absolute;
    right: 0;
    bottom: 5px; /* Çizgiyle hizalamak için */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.view-all-link:hover {
    color: var(--color-prob-cyan);       
    border-color: var(--color-prob-cyan); 
    background: rgba(0, 212, 255, 0.08); 
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.15); 
    transform: translateY(-1px);
}

.view-all-link:active {
    transform: translateY(1px);
}

/* Mobil Ayarı: Ekran küçülünce buton başlığın üstüne binmesin, alta insin */
@media (max-width: 640px) {
    .section-headbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .view-all-link {
        position: static; /* Absolute iptal, akışa girsin */
        margin-top: 0.5rem;
    }
}

.section-subtitle {
    color: var(--color-text-muted); font-size: 0.95rem; 
    margin-bottom: 2rem; margin-top: -1.5rem;
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.section-spacing-bottom { display: block; margin-top: 1rem; margin-bottom: 5rem; }

/* --- CARDS & GRID --- */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem; margin-bottom: 4rem; text-align: left; 
}
.grid-tight { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card-link { display: block; height: 100%; }
.project-card {
    background-color: var(--color-card-bg); 
    border: 1px solid var(--color-border); 
    border-radius: var(--border-radius-tech);
    padding: 2rem; 
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden; height: 100%;
    display: flex; flex-direction: column;
    cursor: default; box-sizing: border-box;
}

.card-accent-cyan { border-top: 3px solid var(--color-prob-cyan); }
.card-accent-orange { border-top: 3px solid var(--color-critical-orange); }

.project-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background-color: var(--color-critical-orange);
    opacity: 0; transition: 0.2s; pointer-events: none;
}

.card-link .project-card { cursor: pointer; }
.card-link:hover .project-card { 
    transform: translateY(-3px); border-color: var(--color-prob-cyan); 
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.1); 
}
.card-link:hover .project-card::before { opacity: 1; }

.project-title { 
    font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; 
    color: var(--color-signal-white); margin-bottom: 0.8rem; line-height: 1.3;
}
.project-title.sm { font-size: 1rem; }
.project-title.xs { font-size: 0.85rem; }

.project-desc { 
    font-size: 1rem; color: var(--color-text-muted); 
    margin-bottom: auto; line-height: 1.6; padding-bottom: 1.5rem; font-weight: 400;
}
.project-desc.sm { font-size: 0.9rem; }

.card-headline {
    color: var(--color-signal-white); margin: 0.5rem 0 1rem 0;
    font-size: 1.2rem; font-weight: 700;
}
.card-header-flex {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}

.tag-featured {
    background: var(--color-critical-orange); color: white; border: none;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
    flex-shrink: 0; white-space: nowrap;
}
.spacer-top { margin-top: 1rem; }

/* Vision Card */
.card-vision {
    border: 1px solid rgba(0, 212, 255, 0.4);
    background: linear-gradient(180deg, rgba(0,212,255,0.08) 0%, rgba(11,30,59,0.3) 100%);
}
.process-flow {
    display: flex; align-items: center; gap: 12px; margin: 1.5rem 0;
    font-family: var(--font-code); font-size: 0.75rem; color: var(--color-prob-cyan);
    opacity: 1; flex-wrap: wrap;
}
.flow-step {
    border: 1px solid var(--color-border); padding: 6px 10px; border-radius: 2px;
    background: rgba(11, 30, 59, 0.8); font-weight: 700;
}
.step-final {
    border-color: var(--color-prob-cyan); color: #fff; background: rgba(0, 212, 255, 0.15);
}
.flow-arrow { color: var(--color-text-muted); font-weight: bold;}

.card-locked {
    opacity: 0.6; border-style: dashed; background: rgba(11, 30, 59, 0.3);
}
.card-locked:hover {
    border-color: var(--color-text-muted); transform: none; box-shadow: none; cursor: not-allowed;
}

/* Tags */
.tech-stack { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tag { 
    font-family: var(--font-code); font-size: 0.7rem; 
    background-color: rgba(33, 126, 170, 0.15); color: var(--color-prob-cyan); 
    padding: 5px 10px; border: 1px solid var(--color-border);
    border-radius: var(--border-radius-tech); font-weight: 600; 
}
.tag.in-dev {
    color: var(--color-text-muted); border-color: var(--color-text-muted); background: transparent;
}

/* --- BUTTONS --- */
.btn {
    background-color: rgba(255, 255, 255, 0.05); color: var(--color-signal-white); 
    padding: 1rem 1.5rem; border-radius: var(--border-radius-tech); 
    border: 1px solid var(--color-border); 
    display: flex; justify-content: center; align-items: center; 
    font-weight: 600; font-family: var(--font-body);
}
.btn:hover { 
    border-color: var(--color-prob-cyan); background-color: rgba(0, 212, 255, 0.1); 
    color: var(--color-prob-cyan);
}
.btn-critical {
    background-color: var(--color-critical-orange); color: #fff; border: none;
    font-family: var(--font-code); text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.3); font-weight: 700;
}
.btn-critical:hover {
    background-color: #ff8c61; transform: scale(1.02); box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}
.btn-secondary { border-color: rgba(242, 242, 243, 0.3); }
.btn-secondary:hover {
    border-color: var(--color-signal-white); color: var(--color-stochastic-navy);
    background-color: var(--color-signal-white);
}

/* --- LISTS & TIMELINE --- */
.list-tech { padding-left: 0; margin-left: 0; list-style: none; }
.list-tech li {
    position: relative; padding-left: 1.8rem; margin-bottom: 0.8rem;
    color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.5;
}
.list-check li::before, .list-cross li::before {
    position: absolute; left: 0; top: 0;
    font-family: var(--font-code); font-weight: 700; font-size: 0.8rem;
}
.list-check li::before { content: '[+]'; color: var(--color-prob-cyan); }
.list-cross li::before { content: '[x]'; color: var(--color-critical-orange); }

.timeline-container {
    text-align: left;
    max-width: 100%;
    margin: 0 0 4rem 0;
}

.timeline-entry {
    padding-left: 1.5rem; 
    border-left: 3px solid rgba(33, 126, 170, 0.5); 
    padding-bottom: 2.5rem;
    margin-bottom: 0;
    position: relative;
    transition: border-left-color 0.3s ease;
}

.timeline-entry.muted {
    border-left-color: rgba(242, 242, 243, 0.3);
}

.timeline-entry:hover {
    border-left-color: var(--color-prob-cyan);
}

.timeline-entry.muted::before {
    border-color: rgba(242, 242, 243, 0.5);
}
.timeline-entry.muted:hover::before {
    border-color: var(--color-prob-cyan);
}

.timeline-entry h3 {
    margin: 0; font-family: var(--font-head);
    color: var(--color-signal-white); font-size: 1.2rem; line-height: 1.3;
}

/* ==========================================================================
   PROTOCOL PAGE SUPPORT (modern-ils.html)
   ========================================================================== */

/* Quote Box Utility */
.quote-box {
    border-left: 4px solid var(--color-critical-orange); 
    padding-left: 1.5rem; margin: 2.5rem 0; 
    font-style: italic; color: var(--color-signal-white);
}

/* Phase Cards */
.phase-card {
    border-left: 3px solid var(--color-border);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.phase-card:hover {
    border-left-color: var(--color-prob-cyan);
    background: linear-gradient(90deg, rgba(33, 126, 170, 0.05) 0%, transparent 100%);
}

.phase-number {
    font-family: var(--font-code);
    color: var(--color-prob-cyan);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Outcome Box within Phase Cards */
.outcome-box {
    background: rgba(11, 30, 59, 0.8);
    border: 1px solid var(--color-border);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: var(--border-radius-tech);
}

/* Outcome label */
.outcome-label {
    font-family: var(--font-code); 
    color: var(--color-prob-cyan); 
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.2rem;
}

/* Outcome text */
.outcome-text {
    margin: 0; 
    font-size: 0.95rem; 
    color: var(--color-signal-white);
}

/* --- FOOTER --- */
footer { 
    background-color: rgba(11, 30, 59, 0.98); padding: 5rem 1rem 3rem 1rem; 
    text-align: center; border-top: 1px solid var(--color-border); margin-top: auto; 
}
.footer-content { max-width: 650px; margin: 0 auto; }
.footer-cta-title {
    font-family: var(--font-code); font-size: 1rem; color: var(--color-prob-cyan);
    margin-bottom: 1rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700;
}
.footer-text {
    font-family: var(--font-body); font-size: 1.1rem; color: var(--color-signal-white);
    margin: 0 auto 2rem auto; line-height: 1.6;
}
.contact-link {
    display: inline-block; color: var(--color-critical-orange); text-decoration: none;
    font-size: 1.3rem; font-weight: 700; padding-bottom: 2px;
    border-bottom: 2px solid transparent; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact-link:hover {
    border-bottom-color: var(--color-critical-orange);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5); transform: translateY(-2px);
}
.social-links { 
    display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem; margin-bottom: 4rem;
}
.social-links a { 
    font-family: var(--font-code); color: var(--color-text-muted); 
    font-size: 0.85rem; letter-spacing: 1px; transition: color 0.2s;
    border-bottom: 1px solid transparent;
}
.social-links a:hover { 
    color: var(--color-prob-cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
    border-bottom-color: var(--color-prob-cyan);
}
.legal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 2rem;
    opacity: 0.7; transition: opacity 0.3s;
}
.legal-footer:hover { opacity: 1; }
.system-version {
    font-family: var(--font-code); font-size: 0.75rem; color: var(--color-prob-cyan);
    margin-bottom: 1rem; display: block;
}
.copyright {
    margin-bottom: 12px; font-size: 0.85rem; color: var(--color-text-muted);
}

.legal-links{
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem 0;

  font-family: var(--font-code);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legal-link{
  color: rgba(242, 242, 243, 0.7);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.legal-link:hover{
  color: var(--color-prob-cyan);
  border-bottom-color: var(--color-prob-cyan);
}

.legal-sep{
  opacity: 0.35;
}

.license-link {
    display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
    color: rgba(242, 242, 243, 0.7); text-decoration: none; transition: color 0.2s;
}
.license-link:hover { color: var(--color-prob-cyan); }
.license-text { font-size: 0.75rem; line-height: 1.4; font-family: var(--font-body); }
.license-icons { display: inline-flex; gap: 10px; }
.cc-badge { width: 20px; height: 20px; display: block; overflow: visible; }
.cc-badge circle { fill: transparent; stroke: currentColor; stroke-width: 1.5; }
.cc-badge text { fill: currentColor; font-family: var(--font-code); font-size: 8px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }

/* Highlight Words */
.highlight {
    color: var(--color-prob-white); position: relative; font-weight: 700; z-index: 1;
}
.highlight::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 6px;
    background-color: rgba(33, 126, 170, 0.4); z-index: -1; transition: all 0.2s ease;
}
.highlight:hover::after { background-color: var(--color-prob-cyan); height: 100%; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .container { padding: 2rem 1.5rem; }
    
    .navbar { padding: 10px 0; }
    .nav-links { gap: 10px; padding: 0 10px; flex-wrap: wrap; justify-content: center; }

    .nav-item {
        font-size: 0.75rem; padding: 6px 12px;
        border: 1px solid var(--color-border);
        border-radius: var(--border-radius-tech);
        background-color: rgba(11, 30, 59, 0.8); margin-bottom: 5px;
    }
    .nav-item.active::after { content: none; }
    .nav-item.active {
        background-color: var(--color-prob-cyan); color: var(--color-stochastic-navy);
        border-color: var(--color-prob-cyan); text-shadow: none;
    }
    .proof-chips { gap: 1rem; }
    .chip { flex: 1 1 40%; min-width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .system-status::after { animation: none; }
    * { transition: none !important; animation: none !important; }
}

/* --- ABOUT PAGE SPECIAL GRIDS --- */

.competencies-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
}

@media (max-width: 1100px) {
    .competencies-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .competencies-grid {
        grid-template-columns: 1fr;
    }
}

/* --- MODULES PAGE 2x2 MATRIX --- */
.grid-matrix {
    grid-template-columns: repeat(2, 1fr) !important; 
}

@media (max-width: 768px) {
    .grid-matrix {
        grid-template-columns: 1fr !important;
    }
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: rgba(11, 30, 59, 0.95);
  border: 1px solid var(--color-prob-cyan);
  color: var(--color-signal-white);
  border-radius: var(--border-radius-tech);
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

/* Article meta */
.post-meta {
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  font-family: var(--font-code);
  font-size: 0.95rem;
}

/* --- CONSENT MODAL (PRIVACY) --- */
#consent-modal {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 360px;
    background-color: rgba(11, 30, 59, 0.95);
    border: 1px solid var(--color-prob-cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
    padding: 1.5rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-tech);
    animation: slideIn 0.5s ease-out;
}

@media (max-width: 768px) {
    #consent-modal {
        bottom: 1rem; 
        left: 1rem; 
        right: 1rem; 
        width: auto; 
        border-radius: var(--border-radius-tech);
        border: 1px solid var(--color-prob-cyan);
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
    
    .consent-actions {
        justify-content: space-between;
    }
    
    #btn-reject, #btn-accept {
        flex: 1;
        text-align: center;
        padding: 0.8rem 0.5rem !important;
    }
}

.consent-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.consent-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.consent-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   ARTICLE PAGE TYPOGRAPHY & LAYOUT
   (Used by _layouts/article.html)
   ========================================================================== */

/* Top navigation links (ex: < BACK_TO_LIBRARY , < PROTOCOL_ILS_TO_IPS ) */
.article-nav{
  max-width: 820px;
  margin: 0 auto 1.6rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/* .back-link sınıfını güncelleyip 'view-all-link' ile aynı stile yaklaştırdık */
.back-link{
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem; /* Biraz daha geniş ve buton gibi */
  border-radius: 2px; /* Tech köşeler */
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);

  font-family: var(--font-code);
  font-size: 0.86rem;
  color: rgba(242,242,243,0.78);
  letter-spacing: 0.3px;
  text-decoration: none;

  transition: all 0.2s ease;
}

.back-link:hover{
  color: var(--color-prob-cyan);
  border-color: var(--color-prob-cyan);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.15);
  transform: translateY(-1px);
}

.back-link:focus-visible{
  outline: 2px solid rgba(0,212,255,0.45);
  outline-offset: 3px;
}

/* Main article wrapper */
.container-article{
  text-align: left;
  padding-top: 2.25rem;
}

.article-hero{
  max-width: 820px;
  margin: 0 auto 2.2rem auto;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.article-title{
  margin: 0 0 0.65rem 0;
  line-height: 1.12;
  letter-spacing: -1.2px;
  text-transform: uppercase;
  color: rgba(242,242,243,0.98);
  font-size: clamp(2.05rem, 3.1vw, 3.1rem);
}

.article-subtitle{
  margin: 0 0 1.1rem 0;
  color: rgba(242,242,243,0.72);
  line-height: 1.65;
  font-size: 1.02rem;
  max-width: 78ch;
}

.article-meta{
  font-family: var(--font-code);
  font-size: 0.86rem;
  color: rgba(242,242,243,0.68);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: baseline;
}

.meta-sep{
  margin: 0 0.15rem;
  opacity: 0.65;
}

.article-proof{
  margin-top: 1.1rem;
}

/* --- ARTICLE PROSE --- */
.prose{
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  font-size: 18px;
}

.prose > :first-child{ margin-top: 0; }

.prose p{
  margin: 0 0 1.05rem 0;
  line-height: 1.85;
  color: rgba(242,242,243,0.82);
}

.prose strong{
  color: rgba(242,242,243,0.94);
}

.prose h2,
.prose h3{
  scroll-margin-top: 110px;
}

.prose h2{
  margin: 2.25rem 0 0.85rem 0;
  font-size: 1.48rem;
  letter-spacing: 0.2px;
  color: rgba(242,242,243,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.prose h3{
  margin: 1.6rem 0 0.6rem 0;
  font-size: 1.14rem;
  color: rgba(242,242,243,0.92);
}

.prose h2 + p,
.prose h3 + p{ margin-top: 0.2rem; }

.prose ul,
.prose ol{
  margin: 0.25rem 0 1.15rem 0;
  padding-left: 1.25rem;
}

.prose li{
  margin: 0.35rem 0;
  line-height: 1.65;
  color: rgba(242,242,243,0.82);
}

.prose ul{ list-style: disc; }
.prose ol{ list-style: decimal; }

.prose a{
  color: var(--color-prob-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover{ opacity: 0.92; }

/* Markdown içindeki blockquote (turuncu veya cyan çizgili kutular için temel) */
.prose blockquote{
  margin: 1.25rem 0;
  padding: 0.95rem 1.05rem;
  border-left: 3px solid var(--color-prob-cyan);
  background: rgba(255,255,255,0.035);
  border-radius: 2px;
}

.prose blockquote p{
  margin: 0;
  color: rgba(242,242,243,0.9);
}

.prose code{
  font-family: var(--font-code);
  font-size: 0.92em;
  padding: 0.14rem 0.4rem;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  color: rgba(242,242,243,0.95);
}

.prose pre{
  margin: 1.15rem 0;
  padding: 1rem 1.05rem;
  border-radius: 4px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.12);
  overflow-x: auto;
}

.prose pre code{
  padding: 0;
  background: transparent;
}

.prose hr{
  border: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 1.9rem 0;
}

.prose img{
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 1.15rem 0;
}

/* Small screens adjustments */
@media (max-width: 640px){
  .container-article{ padding-top: 1.6rem; }
  .article-hero{ margin-bottom: 1.75rem; padding-bottom: 1.35rem; }
  .article-title{ letter-spacing: -0.8px; }
  .prose{ font-size: 16.5px; }
  .article-subtitle{ font-size: 0.98rem; }
  .article-nav{ margin-bottom: 1.2rem; }
}