/* =========================================================================
   Kampüs teması — iskelet: duyuru şeridi, başlık ve menü, sağdan açılan mobil panel,
   defter sayfası iç başlık, cetvel kenarlı alt bilgi.
   ========================================================================= */

@font-face {
    font-family: "Nunito Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 1000;
    src: url("../fonts/nunito-latin-ext.woff2") format("woff2-variations");
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Nunito Sans Variable"; font-style: normal; font-display: swap; font-weight: 200 1000;
    src: url("../fonts/nunito-latin.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary: #2563eb;
    --accent: #facc15;
    --green: #16a34a;
    --dark: #172554;
    --pink: #f472b6;
    --text: #1e293b;
    --muted: #526077;
    --line: #dbe3f0;
    --soft: #f4f7fd;
    --paper: #fffdf6;
    --white: #fff;
    --radius: 18px;
    --font: "Nunito Sans Variable", system-ui, sans-serif;
    --container: 1220px;
    --header-h: 80px;
    --ink: #1a1405;                         /* sarı üzeri yazı */
    --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
    --green-ink: color-mix(in srgb, var(--green) 80%, black);
    --pop: 4px 4px 0 var(--dark);          /* imza: düz gölge */
    --shadow: 0 14px 34px rgba(23, 37, 84, .1);
    --shadow-lg: 0 24px 60px rgba(23, 37, 84, .18);
    /* defter sayfası: açık mavi kareli çizgiler */
    --notebook: linear-gradient(color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px) 0 0 / 26px 26px, linear-gradient(90deg, color-mix(in srgb, var(--primary) 9%, transparent) 1px, transparent 1px) 0 0 / 26px 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: #fff;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--dark); }
h1, h2, h3, h4 { color: var(--dark); line-height: 1.15; font-weight: 900; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--ink); }

.container, .blk-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.skip-link:focus { left: 8px; }

/* Fosforlu kalem vurgusu */
.hl { background: linear-gradient(transparent 58%, color-mix(in srgb, var(--accent) 85%, transparent) 58%, color-mix(in srgb, var(--accent) 85%, transparent) 90%, transparent 90%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em; }
.doodle { position: absolute; width: 48px; height: 48px; pointer-events: none; }

/* ---------- Butonlar: kalın çerçeve + düz gölge ---------- */
.btn, .blk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    padding: 11px 24px; border-radius: 999px; border: 2px solid var(--dark);
    font: inherit; font-weight: 800; font-size: 15.5px; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .2s, color .2s;
}
.btn:hover, .blk-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--dark); }
.btn:active, .blk-btn:active { transform: none; box-shadow: 2px 2px 0 var(--dark); }
.btn-accent, .blk-btn.is-primary { background: var(--accent); color: var(--ink); box-shadow: var(--pop); }
.btn-accent:hover, .blk-btn.is-primary:hover { color: var(--ink); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--pop); }
.btn-primary:hover { color: #fff; }
.btn-outline, .blk-btn.is-outline { background: #fff; color: var(--dark); box-shadow: var(--pop); }
.btn-outline:hover, .blk-btn.is-outline:hover { color: var(--dark); background: var(--primary-soft); }
.btn-sm { min-height: 40px; padding: 7px 16px; font-size: 14px; }

/* ---------- Duyuru şeridi ---------- */
.announce { background: var(--accent); color: var(--ink); font-size: 15px; font-weight: 700; border-bottom: 2px solid var(--dark); }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding-top: 5px; padding-bottom: 5px; text-align: center; }
.announce-inner > .bi { font-size: 18px; transform: rotate(-12deg); flex-shrink: 0; }
.announce a { color: inherit; text-decoration: none; display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; align-items: center; min-height: 32px; }
.announce b { font-weight: 900; text-decoration: underline; text-decoration-style: wavy; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.announce a:hover b { text-decoration-style: solid; }

/* ---------- Başlık ---------- */
.site-header { background: #fff; position: relative; z-index: 50; border-bottom: 2px solid var(--dark); transition: box-shadow .25s; }
.has-sticky-header .site-header { position: sticky; top: 0; }
.site-header.is-scrolled { box-shadow: 0 6px 0 rgba(23, 37, 84, .08); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--dark); margin-right: auto; flex-shrink: 0; min-width: 0; }
.brand img { max-height: 54px; width: auto; display: block; }
.brand-mark {
    width: 46px; height: 46px; border-radius: 14px; background: var(--primary); color: #fff; border: 2px solid var(--dark); box-shadow: 3px 3px 0 var(--accent);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; transform: rotate(-6deg); flex-shrink: 0;
}
.brand-name { font-weight: 900; font-size: 21px; letter-spacing: -.02em; color: var(--dark); }

.primary-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.primary-nav li { position: relative; }
.primary-nav .menu > li > a {
    position: relative; display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; color: var(--text); text-decoration: none;
    font-weight: 800; font-size: 15.5px; border-radius: 12px;
}
/* aktif öğe: el çizimi dalgalı alt çizgi */
.primary-nav .menu > li > a::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 8px; opacity: 0; transition: opacity .2s;
    background: var(--primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M1 5c4-4 6 2 10-1s6-3 9 0 6 3 9 0 6-3 10 0' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 40px 8px repeat-x; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M1 5c4-4 6 2 10-1s6-3 9 0 6 3 9 0 6-3 10 0' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 40px 8px repeat-x;
}
.primary-nav .menu > li:hover > a { background: var(--soft); color: var(--dark); }
.primary-nav .menu > li.is-active > a { color: var(--primary); }
.primary-nav .menu > li.is-active > a::after, .primary-nav .menu > li:hover > a::after { opacity: 1; }
.caret { font-size: 11px; transition: transform .2s; }
.primary-nav li:hover > a .caret { transform: rotate(180deg); }
.sub-toggle { display: none; }
.submenu {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: #fff;
    border: 2px solid var(--dark); border-radius: 16px; box-shadow: 5px 5px 0 var(--primary); z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(6px) rotate(-1deg); transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.submenu .submenu { top: -10px; left: calc(100% + 10px); }
.primary-nav li:hover > .submenu, .primary-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; border-radius: 10px; }
.submenu a:hover, .submenu .is-active > a { background: var(--accent); color: var(--ink); }
.submenu .caret { transform: rotate(-90deg) !important; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle, .nav-close {
    display: none; width: 46px; height: 46px; border-radius: 14px; border: 2px solid var(--dark); box-shadow: 3px 3px 0 var(--dark);
    background: #fff; color: var(--dark); font-size: 24px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-close { font-size: 18px; }
.nav-panel-head, .nav-panel-foot, .nav-backdrop { display: none; }

@media (max-width: 1099px) {
    .nav-toggle, .nav-close { display: inline-flex; }
    .header-cta { display: none; }
    .primary-nav {
        position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(380px, calc(100vw - 24px)); z-index: 200; display: flex; flex-direction: column;
        background: var(--notebook), var(--paper); border: 2px solid var(--dark); border-radius: 24px; box-shadow: 6px 6px 0 var(--dark); overflow: hidden;
        transform: translateX(calc(100% + 30px)); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .nav-open .primary-nav { transform: none; visibility: visible; }
    .nav-open .site-header { z-index: 300; }
    .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(23, 37, 84, .45); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-open { overflow: hidden; }
    .nav-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 20px; background: var(--accent); border-bottom: 2px solid var(--dark); }
    .primary-nav .menu { flex-direction: column; align-items: stretch; gap: 6px; padding: 16px; overflow-y: auto; }
    .primary-nav .menu > li { background: #fff; border: 2px solid var(--dark); border-radius: 14px; }
    .primary-nav .menu > li:nth-child(3n+1) { box-shadow: 3px 3px 0 var(--primary); }
    .primary-nav .menu > li:nth-child(3n+2) { box-shadow: 3px 3px 0 var(--accent); }
    .primary-nav .menu > li:nth-child(3n) { box-shadow: 3px 3px 0 var(--green); }
    .primary-nav .menu > li > a { font-size: 17px; min-height: 50px; }
    .primary-nav .menu > li > a::after, .caret { display: none; }
    .primary-nav li.has-children { display: grid; grid-template-columns: 1fr auto; align-items: center; }
    .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: 4px; border: 0; background: var(--soft); border-radius: 10px; cursor: pointer; color: var(--dark); }
    .sub-toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
    .submenu, .submenu .submenu { grid-column: 1 / -1; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 8px 8px 16px; display: none; background: transparent; }
    .submenu::before { display: none; }
    li.is-open > .submenu { display: block; }
    .nav-panel-foot { display: grid; gap: 10px; padding: 16px 20px 20px; margin-top: auto; border-top: 2px dashed color-mix(in srgb, var(--dark) 35%, transparent); }
    .nav-contact { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; font-weight: 700; }
    .nav-contact .bi { color: var(--primary); }
}
@media (min-width: 1100px) and (max-width: 1260px) { .primary-nav .menu > li > a { padding: 8px 10px; font-size: 15px; } .header-inner { gap: 14px; } }

/* ---------- İç sayfa başlığı: defter sayfası ---------- */
.page-hero { position: relative; padding: 56px 0 60px; background: var(--notebook), var(--paper); border-bottom: 2px solid var(--dark); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: max(10px, calc((100vw - var(--container)) / 2 - 18px)); width: 2px; background: #f87171; opacity: .7; }
.page-hero > .container, .page-hero > .blk-container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; }
.page-hero h1 { order: 2; margin: 0; font-size: clamp(32px, 5vw, 56px); max-width: 900px; }
.page-hero p, .page-lead { order: 3; margin: 16px 0 0; font-size: 19px; color: var(--muted); max-width: 720px; }
.page-hero .news-meta { order: 3; margin-top: 16px; }
.breadcrumbs { order: 1; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 18px; padding: 4px 14px; font-size: 14px; font-weight: 700; color: var(--muted); background: #fff; border: 2px solid var(--dark); border-radius: 999px; }
.breadcrumbs a { color: var(--primary); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; min-height: 32px; }
.breadcrumbs a:hover { text-decoration: underline; }
.ph-star { right: 8%; top: 26%; width: 56px; height: 56px; color: var(--accent); transform: rotate(14deg); }
.ph-arrow { right: 15%; bottom: 14%; width: 70px; height: 70px; color: var(--primary); transform: rotate(-10deg); }
@media (max-width: 760px) { .ph-arrow { display: none; } .ph-star { right: 4%; top: 10%; width: 40px; } }
.preview-bar, .blk-preview-bar { background: #fef3c7; color: #92400e; text-align: center; padding: 10px 16px; font-size: 14px; }
.preview-bar a, .blk-preview-bar a { color: inherit; font-weight: 700; margin-left: 6px; }

/* ---------- Yan menülü şablon ---------- */
.with-sidebar { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 992px) { .with-sidebar { grid-template-columns: 290px 1fr; align-items: start; } }
.section-nav { background: #fff; border: 2px solid var(--dark); border-radius: var(--radius); box-shadow: 5px 5px 0 var(--primary); overflow: hidden; }
@media (min-width: 992px) { .section-nav { position: sticky; top: calc(var(--header-h) + 24px); } }
.section-nav-title { background: var(--accent); color: var(--ink); font-weight: 900; padding: 14px 20px; border-bottom: 2px solid var(--dark); }
.section-nav ul { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; }
.section-nav li a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: 12px; font-weight: 700; }
.section-nav li a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--primary); flex-shrink: 0; }
.section-nav li a:hover { background: var(--soft); }
.section-nav li.is-active a { background: var(--primary-soft); color: var(--primary); }
.section-nav li.is-active a::before { background: var(--primary); }
.section-nav-help { margin: 10px; padding: 16px; background: var(--dark); color: rgba(255, 255, 255, .85); border-radius: 14px; display: grid; gap: 2px; font-size: 14px; }
.section-nav-help .bi { font-size: 24px; color: var(--accent); }
.section-nav-help a { color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; }
.sidebar-content .blk-container { padding: 0; max-width: none; }
.sidebar-content .blk-section { padding: 0 0 56px; }
.sidebar-content section.blk-stats, .sidebar-content .blk-cta, .sidebar-content .blk-hero, .sidebar-content .blk-soft { padding: 36px 30px; margin-bottom: 56px; border-radius: var(--radius); min-height: 0; }
.sidebar-content .blk-hero-inner { padding: 0; grid-template-columns: 1fr !important; }
.sidebar-content .card-stack, .sidebar-content .doodle { display: none; }

/* ---------- Alt bilgi: cetvel kenarlı ---------- */
.site-footer { position: relative; background: var(--dark); color: rgba(255, 255, 255, .78); font-size: 15.5px; margin-top: 0; }
.ruler { height: 30px; background: var(--accent); border-top: 2px solid var(--dark); border-bottom: 2px solid var(--dark);
    background-image: linear-gradient(90deg, var(--dark) 2px, transparent 2px), linear-gradient(90deg, var(--dark) 1px, transparent 1px);
    background-size: 60px 16px, 12px 8px; background-repeat: repeat-x; background-position: 0 0, 0 0; }
.footer-grid { position: relative; display: grid; gap: 40px; padding-top: 64px; padding-bottom: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; } }
.footer-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 900; color: #fff; text-decoration: none; margin-bottom: 16px; }
.footer-logo img { max-height: 52px; width: auto; }
.footer-logo .brand-mark { width: 40px; height: 40px; font-size: 19px; border-color: #fff; }
.footer-brand { position: relative; }
.footer-brand p { margin: 0 0 22px; max-width: 380px; }
.footer-brand .btn { border-color: #fff; box-shadow: 4px 4px 0 #fff; }
.footer-doodle { position: absolute; right: 10%; bottom: -10px; width: 70px; height: 70px; color: var(--accent); opacity: .7; }
.footer-title { display: inline-block; font-size: 15px; margin: 4px 0 18px; padding: 4px 12px; border-radius: 999px; color: var(--ink); background: var(--accent); transform: rotate(-2deg); }
.footer-title.is-blue { background: #93c5fd; }
.footer-title.is-green { background: #86efac; transform: rotate(1.5deg); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.footer-links a:hover { color: var(--accent); text-decoration: underline wavy; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; padding: 5px 0; }
.footer-contact .bi { color: var(--accent); margin-top: 2px; }
.footer-contact a { color: inherit; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.social { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.social a { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; border: 2px solid rgba(255, 255, 255, .25); }
.social a:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 24px; border-top: 2px dashed rgba(255, 255, 255, .18); font-size: 14px; }
.legal-links { display: flex; gap: 0 18px; flex-wrap: wrap; }
.legal-links a { color: inherit; text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.legal-links a:hover { color: #fff; }

/* ---------- Arama ve dil seçici ---------- */
.header-icon {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 10px;
    border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--dark); text-decoration: none; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer;
}
.header-icon:hover { border-color: var(--dark); }
.lang-switch { position: relative; }
.lang-switch .bi { font-size: 10px; }
.lang-menu {
    list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 160px; z-index: 80;
    background: #fff; border: 2px solid var(--dark); border-radius: 14px; box-shadow: 4px 4px 0 var(--dark);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.lang-switch:hover .lang-menu, .lang-switch:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 15px; font-weight: 700; }
.lang-menu a:hover, .lang-menu a.is-active { background: var(--accent); color: var(--ink); }

/* ---------- Yüzen butonlar ve çerez bildirimi ---------- */
.float-btn {
    position: fixed; right: 20px; z-index: 90; width: 52px; height: 52px; border-radius: 16px; border: 2px solid var(--dark);
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px; cursor: pointer; box-shadow: 3px 3px 0 var(--dark);
    text-decoration: none; transition: transform .2s, opacity .25s, visibility .25s;
}
.float-btn:hover { transform: translateY(-3px); }
.float-whatsapp { bottom: 20px; background: #1f9e55; color: #fff; font-size: 26px; }
.float-whatsapp:hover { color: #fff; }
.float-top { bottom: 84px; background: var(--accent); color: var(--ink); opacity: 0; visibility: hidden; }
.float-top.is-visible { opacity: 1; visibility: visible; }
body:not(:has(.float-whatsapp)) .float-top { bottom: 20px; }
.cookie-bar {
    position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 480px; background: var(--paper); color: var(--text);
    border: 2px solid var(--dark); border-radius: 18px; box-shadow: 5px 5px 0 var(--dark); padding: 16px 18px; display: flex; gap: 14px; align-items: center;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar > .bi { font-size: 26px; color: #b45309; }
.cookie-bar p { margin: 0; font-size: 14.5px; }
@media (max-width: 560px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; flex-wrap: wrap; } .cookie-bar .btn { width: 100%; } }

/* ---------- Hata ve bakım sayfaları ---------- */
.error-page { position: relative; padding: 90px 0 100px; text-align: center; background: var(--notebook), var(--paper); overflow: hidden; }
.error-inner { position: relative; max-width: 680px; display: flex; flex-direction: column; align-items: center; }
.error-code { font-size: clamp(110px, 20vw, 190px); font-weight: 1000; line-height: 1; color: var(--primary); letter-spacing: -.04em; text-shadow: 6px 6px 0 var(--accent); }
.error-code span { color: var(--green); }
.error-circle { width: 200px; height: 200px; top: -10px; left: 50%; margin-left: -40px; color: #f87171; opacity: .7; }
.error-page .blk-eyebrow { margin-top: 10px; }
.error-page h1 { margin: 10px 0; font-size: clamp(26px, 3.4vw, 38px); }
.error-page p { color: var(--muted); margin: 0 0 28px; }
.error-page .blk-actions { justify-content: center; }
.maintenance-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--notebook), var(--paper); }
.maintenance-box { background: #fff; border: 2px solid var(--dark); border-radius: 24px; box-shadow: 8px 8px 0 var(--primary); padding: 44px 36px; max-width: 520px; text-align: center; }
.maintenance-box .brand-name { font-size: 24px; }
.maintenance-logo { max-height: 56px; }
.maintenance-icon { display: block; font-size: 44px; color: var(--primary); margin: 14px 0 6px; transform: rotate(-20deg); }
.maintenance-box p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .btn:hover, .blk-btn:hover { transform: none; }
}

@media (max-width: 520px) {
    .announce { font-size: 13.5px; }
    .brand-mark { width: 38px; height: 38px; font-size: 18px; border-radius: 12px; }
    .brand-name { font-size: 17px; }
    .brand img { max-height: 42px; }
    .header-actions { gap: 6px; }
    .header-icon { min-width: 40px; height: 40px; }
    .nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 380px) { .brand-name { font-size: 15px; } .brand { gap: 8px; } }
