.theme-forest {
    --ink: #26392d;
    --muted: #526452;
    --green: #37652e;
    --green-dark: #284d24;
    --mint: #eaf0e1;
    --paper: #f7f9f3;
    --line: #d7e1cc;
}
.theme-sunrise {
    --ink: #4b2b21;
    --muted: #745c50;
    --green: #934b21;
    --green-dark: #733513;
    --mint: #fcebd9;
    --paper: #fff9f1;
    --line: #ead8c6;
}
.site-header, .exam-header, .site-footer { border-color: var(--line); }
.site-header { color: var(--site-header-ink, var(--ink)); background: var(--site-header-bg, var(--white)); }
.site-header .header-menu nav a:hover, .site-header .header-menu nav a[aria-current], .site-header .menu-toggle {
    color: var(--site-header-ink, var(--green-dark));
}
.site-header .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--site-header-tint, var(--mint));
}
.site-header .menu-toggle:hover { border-color: currentColor; }
.site-header .menu-toggle[aria-expanded="true"] {
    background: var(--site-header-ink, var(--green-dark));
    color: var(--site-header-bg, var(--white));
    border-color: transparent;
}
.menu-toggle span { display: grid; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; stroke-width: 2; }
.menu-toggle[aria-expanded="false"] .menu-glyph-close,
.menu-toggle[aria-expanded="true"] .menu-glyph-open { display: none; }
.site-header :focus-visible { outline-color: var(--site-header-ink, var(--green)); }
.site-footer :focus-visible { outline-color: var(--site-footer-ink, var(--green)); }
.search, .timer, progress { background-color: var(--paper); }
.button-outline, .form-grid input:not([type="checkbox"]), .form-grid textarea, .form-grid select { border-color: var(--line); }
.button-outline:hover:not(:disabled), .button-quiet:hover:not(:disabled), .chip:hover { background: var(--mint); }
.search-results-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .5rem .75rem;
    padding: clamp(.875rem, 2.5vw, 1.25rem);
    margin-block-end: .875rem;
}
.search-results-form input, .search-results-form .button { min-height: 44px; }
.search-results-form label { min-width: 0; }
.chip.active, .chip[aria-current], .question-index { background: var(--mint); color: var(--green-dark); border-color: var(--line); }
.home-intro h1 { color: var(--ink); }
.home-intro.has-hero-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .81fr); align-items: center; }
.home-intro-copy .button { margin-top: 1rem; }
.home-hero-image { display: block; width: 100%; aspect-ratio: 16 / 10; max-height: 310px; object-fit: cover; border-radius: 16px; }
.contact-cover { margin-block: .8rem 1rem; }
.contact-static-note { max-width: 700px; margin-bottom: 1rem; }
.season-message { color: var(--green-dark); background: var(--mint); border-bottom: 1px solid var(--line); text-align: center; font-weight: 720; }
.season-message > span { display: block; padding-block: .5rem; }
.season-festival .season-message { color: #674712; background: #faf0d8; border-color: #ead6a5; }
.season-official .season-message { color: #822731; background: #fbe9ec; border-color: #ebc6cb; }
.season-winter .season-message { color: #234f76; background: #e9f4fe; border-color: #cbdef2; }
.home-section-image { display: block; margin-block: .7rem; width: 100%; max-height: 18rem; object-fit: contain; border-radius: 8px; }
.home-section-action { margin-top: .75rem; }
.home-list-section .heading-row { align-items: center; }
.home-list-section .heading-row h2 { min-width: 0; overflow-wrap: anywhere; }
.list-home .home-list-section {
    --section-measure: clamp(min(100%, 17rem), calc(100% * var(--home-list-width, 1)), max(100%, calc(100vw - 64px)));
    inline-size: var(--section-measure);
    margin-inline: calc((100% - var(--section-measure)) / 2);
}
.list-home .home-list-section .heading-row {
    margin-block-end: calc(.75rem * var(--home-title-gap, 1));
}
.list-home .home-list-section .heading-row h2 {
    position: relative;
    inset-block-start: calc((var(--home-title-position, 1) - 1) * .75rem);
}
.list-home .home-feed :is(.test-card, .public-list-row) {
    padding-block: calc(.85rem * var(--home-list-padding, 1));
}
.home-list-section .heading-row .home-view-all {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}
.snowfall {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.snowfall span {
    position: absolute;
    top: -2rem;
    left: calc(var(--start) + var(--layer-shift, 0%));
    color: #fff;
    font: var(--size, 12px)/1 "Segoe UI Symbol", "DejaVu Sans", sans-serif;
    text-shadow: 0 0 2px #4b7794, 0 1px 1px #6d8ba0;
    opacity: var(--tone, .58);
    animation: snow-descent var(--pace, 24s) linear calc(var(--delay) + var(--layer-delay, 0s)) infinite;
}
.snowfall span:nth-child(12n + 1) { --start: 5%; --delay: -11s; --size: 10px; }
.snowfall span:nth-child(12n + 2) { --start: 13%; --delay: -4s; --pace: 30s; --tone: .42; }
.snowfall span:nth-child(12n + 3) { --start: 22%; --delay: -23s; --size: 16px; --pace: 31s; }
.snowfall span:nth-child(12n + 4) { --start: 30%; --delay: -15s; --size: 9px; --pace: 28s; }
.snowfall span:nth-child(12n + 5) { --start: 38%; --delay: -8s; --size: 17px; --pace: 32s; }
.snowfall span:nth-child(12n + 6) { --start: 47%; --delay: -12s; --pace: 27s; --tone: .43; }
.snowfall span:nth-child(12n + 7) { --start: 57%; --delay: -17s; --size: 15px; --pace: 29s; }
.snowfall span:nth-child(12n + 8) { --start: 64%; --delay: -19s; --size: 10px; --pace: 33s; }
.snowfall span:nth-child(12n + 9) { --start: 73%; --delay: -6s; --size: 13px; }
.snowfall span:nth-child(12n + 10) { --start: 81%; --delay: -3s; --size: 9px; --pace: 25s; }
.snowfall span:nth-child(12n + 11) { --start: 88%; --delay: -18s; --size: 15px; --pace: 27s; }
.snowfall span:nth-child(12n + 12) { --start: 93%; --delay: -22s; --size: 11px; --pace: 33s; }
.snowfall span:nth-child(n + 13) { --layer-shift: 2%; --layer-delay: -7s; }
.snowfall span:nth-child(n + 25) { --layer-shift: -2%; --layer-delay: -15s; }
.snowfall span:nth-child(n + 37) { --layer-shift: 3.6%; --layer-delay: -21s; }
@keyframes snow-descent {
    0% { transform: translate(0, 0) rotate(-12deg); }
    35% { transform: translate(16px, 35vh) rotate(15deg); }
    70% { transform: translate(-9px, 70vh) rotate(-10deg); }
    100% { transform: translate(10px, calc(100vh + 3rem)) rotate(18deg); }
}
@media (max-width: 600px) {
    .snowfall span:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .snowfall { display: none; }
}

.cookie-banner {
    position: fixed;
    z-index: 45;
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
    left: max(.75rem, env(safe-area-inset-left));
    width: min(100% - 1.5rem, 850px);
    margin: auto;
    padding: .9rem 1rem;
    display: flex;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 48px #142a3240;
}
.cookie-banner h2, .cookie-dialog h2 { font-size: 1.25rem; }
.cookie-banner p, .cookie-dialog p { margin-top: .22rem; font-size: .91rem; color: var(--muted); }
.cookie-actions { justify-content: end; flex: none; }
.cookie-dialog { width: min(100% - 1.5rem, 520px); max-width: none; max-height: 90dvh; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 14px; }
.cookie-dialog .check small { display: block; font-weight: 400; }
.cookie-dialog .check { align-items: start; }
.external-video-choice { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
[data-adsense-slot] { min-height: 100px; overflow: hidden; }
.adsense-unit { width: 100%; }
.feedback-label { display: inline-block; font-size: 1rem; }
.feedback-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 .15rem; }
.feedback-chip { border-radius: 6px; padding: .18rem .42rem; font-size: .81rem; font-weight: 725; overflow-wrap: anywhere; }
.feedback-chip.picked { color: #7d2635; background: #f4d9df; }
.feedback-chip.solution { color: #195a37; background: #e0f1e5; }
#feedback .question-explanation p { padding-top: .18rem; color: var(--ink); }
.result-review-wrong { background: var(--wrong-bg); border-color: #e7bbc4; }

.studio-primary { display: grid; gap: .22rem; margin-bottom: .7rem; }
.studio-primary a { display: block; padding: .58rem .7rem; border-radius: 8px; font-weight: 690; }
.studio-primary a:hover, .studio-primary [aria-current] { background: #284b82; }
.studio-advanced { margin-top: .48rem; border-top: 1px solid #456384; padding-top: .3rem; }
.studio-advanced > summary { padding: .55rem .65rem; cursor: pointer; color: #dce9fa; font-weight: 700; }
.studio-advanced > .studio-group { margin-inline-start: .35rem; }
.studio-workspace-links { margin-bottom: .85rem; gap: .4rem; }
.studio-image-setting { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 9px; padding: .65rem; }
.studio-image-setting legend { font-weight: 725; padding-inline: .2rem; }
.studio-image-setting .admin-preview { margin-bottom: .6rem; }
.studio-report meter { width: min(28%, 100px); height: .8rem; }
.backup-restore { border-block: 1px solid var(--line); margin-block: 1rem; padding-block: .85rem; }
.backup-restore h4, .backup-restore form { margin-top: .85rem; }
.backup-restore p { overflow-wrap: anywhere; }
.backup-restore input[type="file"] { width: 100%; max-width: 34rem; }
.studio-note-form { margin-top: .65rem; }
@media (max-width: 760px) {
    .cookie-banner { flex-direction: column; align-items: stretch; gap: .55rem; }
    .cookie-actions { justify-content: start; }
    .home-intro.has-hero-image { grid-template-columns: minmax(0, 1fr); }
    .home-hero-image { max-height: 220px; }
}
@media (max-width: 420px) {
    .cookie-actions { gap: .35rem; }
    .cookie-actions .button { padding-inline: .6rem; font-size: .86rem; }
}

/* Page surfaces use the selected palette across navigation, lists, and exams. */
.theme-mint { --paper: #edf6f1; }
.theme-blue { --paper: #eaf3fc; }
.theme-slate { --paper: #e9edf4; }
.theme-ocean { --paper: #e8f5f8; }
.theme-lavender { --paper: #f0eafa; }
.theme-coral { --paper: #fcefe9; }
.theme-forest { --paper: #edf3e6; }
.theme-sunrise { --paper: #fff2df; }
body { background: var(--paper); }
.site-footer {
    color: var(--site-footer-ink, var(--ink));
    background: var(--site-footer-bg, var(--mint));
    padding-block: 1rem max(1rem, env(safe-area-inset-bottom, 0px));
}
.footer-menu, .site-legal nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .2rem clamp(.7rem, 2.4vw, 1.15rem);
    text-align: center;
}
.footer-menu { font-weight: 650; }
.site-footer nav a { max-inline-size: 100%; padding-block: .45rem; overflow-wrap: anywhere; }
.site-footer nav a:is(:hover, :focus-visible) { text-decoration: underline; }
.site-legal { display: grid; justify-items: center; gap: .55rem; font-size: .875rem; }
.footer-menu + .site-legal { margin-block-start: .55rem; }
.site-legal nav a { color: var(--site-footer-ink, var(--green-dark)); }
.legal-callout {
    inline-size: min(100%, 52rem);
    padding: .65rem clamp(.7rem, 3vw, 1.1rem);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--site-footer-tint, color-mix(in srgb, var(--white) 76%, var(--mint)));
    color: var(--site-footer-ink, var(--ink));
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}
.legal-callout svg { width: .9375rem; height: .9375rem; margin-inline-end: .3rem; vertical-align: -.15em; }
.home-intro {
    background: linear-gradient(110deg, var(--mint), var(--white));
    border-color: var(--line);
}
.season-winter .home-intro { background: linear-gradient(120deg, var(--mint), #f5fbff 70%); }
.breadcrumbs { display: flex; gap: .35rem .55rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; font-size: .88rem; color: var(--muted); }
.breadcrumbs a { color: var(--green-dark); text-decoration: underline; text-underline-offset: .18em; }
.test-tags { list-style: none; padding: 0; margin: .8rem 0; }
.blog-tags :is(li, .chip) { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
.test-tools { margin: .9rem 0; }
.share-status input { max-width: 100%; }
.share-status:empty { display: none; }
.exam-tools { justify-content: end; }
.exam-tools .button { min-height: 44px; }
.print-controls { margin-bottom: 1.25rem; }
.paper-name { margin-top: 1rem; }
.print-questions { padding-inline-start: 1.45rem; }
.print-questions > li { padding: .55rem 0 .85rem; margin-bottom: .65rem; border-bottom: 1px solid var(--line); }
.print-questions h2 { font-size: 1.05rem; margin-bottom: .4rem; }
.print-questions img { display: block; max-width: min(90%, 250px); max-height: 130px; object-fit: contain; margin-block: .3rem; }

.studio { --sidebar-bg: #11243f; --sidebar-ink: #f2f7ff; --sidebar-muted: #c0d0e4; --sidebar-line: #456384; --sidebar-active: #294d83; }
.admin-theme-light .studio {
    --sidebar-bg: #fff; --sidebar-ink: #182c49; --sidebar-muted: #475f7d;
    --sidebar-line: #cbd8e8; --sidebar-active: #dbe9ff;
}
.admin-theme-site .studio {
    --studio-ink: #192c40;
    --studio-muted: #536782;
    --studio-blue: var(--panel-accent, #086f65);
    --sidebar-bg: var(--panel-tint, #e4f3eb);
    --sidebar-ink: #192c40; --sidebar-muted: #3c526b; --sidebar-line: #a0b4c5;
    --sidebar-active: color-mix(in srgb, var(--sidebar-bg) 76%, var(--studio-blue));
    background: var(--paper);
    color: #192c40;
}
.admin-theme-site.theme-blue { --panel-accent: #2058ab; --panel-tint: #e1edff; }
.admin-theme-site.theme-slate { --panel-accent: #334d74; --panel-tint: #e3e9f2; }
.admin-theme-site.theme-ocean { --panel-accent: #006981; --panel-tint: #def2f6; }
.admin-theme-site.theme-lavender { --panel-accent: #62449b; --panel-tint: #ebe2fa; }
.admin-theme-site.theme-coral { --panel-accent: #9b4234; --panel-tint: #fce9e3; }
.admin-theme-site.theme-forest { --panel-accent: #37652e; --panel-tint: #e6f0dd; }
.admin-theme-site.theme-sunrise { --panel-accent: #934b21; --panel-tint: #fae7cf; }
.studio-aside { color: var(--sidebar-ink); background: var(--sidebar-bg); }
.studio-aside :focus-visible { outline-color: currentColor; }
.studio-brand, .studio-aside-foot, .studio-advanced { border-color: var(--sidebar-line); }
.studio-aside-foot small, .studio-no-sections, .studio-advanced > summary, .studio-group summary { color: var(--sidebar-muted); }
.studio-section-search { color: var(--sidebar-ink); background: transparent; border-color: var(--sidebar-line); }
.studio-section-search::placeholder { color: var(--sidebar-muted); }
.studio-primary a:hover, .studio-primary [aria-current], .studio-group a:hover, .studio-group a[aria-current],
.studio-group summary:hover, .studio-group[open] > summary { background: var(--sidebar-active); color: var(--sidebar-ink); }
.settings-section-bar { display: flex; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.settings-contents { margin: 0 0 1rem; }
#settings-workspace[aria-busy="true"] { cursor: progress; }
.studio-metric small { display: block; margin-top: .35rem; color: var(--muted); }
.stats-period { margin-top: 1.5rem; }
.stats-period .chips { margin-block: 0; }
.stats-series { display: flex; gap: clamp(2px, .4vw, 6px); padding: 0; margin: .8rem 0 .35rem; list-style: none; }
.stats-series li { display: grid; justify-items: center; flex: 1 1 0; min-width: 0; }
.stats-series meter { writing-mode: vertical-lr; direction: rtl; width: 100%; max-width: 36px; height: 94px; }
.stats-series meter::-webkit-meter-bar { border: 0; background: var(--mint); }
.stats-series meter::-webkit-meter-optimum-value { background: var(--green); }
.stats-series meter::-moz-meter-bar { background: var(--green); }
.stats-axis { display: flex; justify-content: space-between; gap: .4rem; font-size: .8rem; color: var(--muted); }
.stats-chart details { margin-top: .75rem; }

@media (max-width: 700px) {
    .exam-tools { justify-content: start; }
}
.exam-nav .button svg { width: 1.05rem; height: 1.05rem; flex: none; }
@media (max-width: 760px) {
    body:has(.exam-main) { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
    .exam-nav {
        position: fixed;
        inset: auto 0 0;
        z-index: 6;
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
        gap: .5rem;
        margin: 0;
        padding: .6rem max(12px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
        border-top: 1px solid var(--line);
        background: #fff;
        box-shadow: 0 -4px 12px #12283414;
    }
    .exam-nav .button { min-height: 48px; min-width: 0; }
    #question-text { scroll-margin-top: 84px; }
}
@media print {
    body { background: #fff !important; color: #000; }
    .snowfall, .site-footer, #cookie-system, .print-controls, .review summary::after, .result-actions { display: none !important; }
    .result-page, .printable-test { width: 100%; padding: 0; }
    .print-questions > li, .review, .score-card { break-inside: avoid; }
    .printable-test h1 { font-size: 1.6rem; }
}

:is(.site-background-white, .admin-background-white, .background-white) { --background-choice: #fff; }
:is(.site-background-mist, .admin-background-mist, .background-mist) { --background-choice: #eef1f5; }
:is(.site-background-ice, .admin-background-ice, .background-ice) { --background-choice: #e7f1fb; }
:is(.site-background-sage, .admin-background-sage, .background-sage) { --background-choice: #ebf2e7; }
:is(.site-background-sand, .admin-background-sand, .background-sand) { --background-choice: #f7f0e1; }
:is(.site-background-lilac, .admin-background-lilac, .background-lilac) { --background-choice: #f0eafa; }
:is(.site-background-white, .site-background-mist, .site-background-ice, .site-background-sage, .site-background-sand, .site-background-lilac) {
    --paper: var(--background-choice);
}

.site-background-custom { background: var(--site-custom-background, var(--paper)); }
.site-background-dark main.wrap {
    background: var(--paper);
    border-radius: var(--radius);
    padding-inline: clamp(.6rem, 2vw, 1.4rem);
    margin-block: .75rem;
}
.admin-page.admin-background-custom, .admin-background-custom .studio { --background-choice: var(--admin-custom-background); }
.admin-background-dark .studio-main {
    background: var(--studio-background);
    width: calc(100% - 1.3rem);
    margin-block: .65rem;
    border-radius: 12px;
}

.exam-share-dialog { width: min(100% - 1.3rem, 540px); max-height: calc(100dvh - 1.3rem); overflow-y: auto; }
.exam-share-dialog .meta { margin-block: .5rem; }
.exam-share-dialog canvas { display: block; height: auto; width: min(100%, 340px); margin: .6rem auto; border: 1px solid var(--line); border-radius: 8px; }
.exam-share-dialog .actions { gap: .35rem; }
.print-brand { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; padding: .6rem .8rem; margin-bottom: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 8px; }
.print-brand .brand { flex-wrap: wrap; white-space: normal; }
.print-address { color: var(--green-dark); font-weight: 700; font-size: .88rem; overflow-wrap: anywhere; }
.print-signature { border-top: 2px solid var(--line); padding: .7rem .3rem; margin-top: .8rem; break-inside: avoid; }
.print-signature .meta { margin-top: .4rem; }
.result-print-brand { display: none; }
@media print {
    .result-print-brand { display: flex; }
    .print-brand, .print-signature { border-color: #808b81; }
    .print-address { color: #142a32; }
}

/* A single title link covers the card, while its own action stays clickable. */
.test-card { position: relative; }
.test-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.test-card:has(h3 a:focus-visible) { outline: 2px solid var(--green); outline-offset: -2px; }
.test-card > form, .test-card > a.button { position: relative; z-index: 1; }
.button.action-icon, .row-action.action-icon {
    --action-size: max(var(--action-target-size, 44px), var(--action-box-size, 44px));
    display: inline-grid;
    place-items: center;
    inline-size: var(--action-size);
    block-size: var(--action-size);
    min-block-size: var(--action-size);
    max-inline-size: none;
    padding: 0;
    border: 0;
    border-radius: var(--action-box-radius, 50%);
    background: transparent;
    color: var(--action-foreground, #fff);
}
.action-icon::before {
    content: '';
    grid-area: 1 / 1;
    inline-size: var(--action-box-size, 44px);
    block-size: var(--action-box-size, 44px);
    border-radius: inherit;
    background: var(--action-background, var(--green-dark));
}
.action-icon :is(svg, img) {
    --glyph-size: min(var(--action-glyph, .9375rem), calc(var(--action-box-size, 44px) - 8px));
    grid-area: 1 / 1;
    width: var(--glyph-size);
    height: var(--glyph-size);
    object-fit: contain;
}
.button-primary.action-icon:hover:not(:disabled) { background: transparent; }
.action-icon:is(:hover, :focus-visible)::before,
.public-list-row:is(:hover, :focus-visible) .action-icon::before {
    outline: 1px solid var(--action-background, var(--green-dark));
    outline-offset: 2px;
}
.public-list-row:focus-visible { outline-offset: -3px; }
.maintenance-screen {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding-block: 1.25rem;
}
.maintenance-card {
    width: min(100%, 34rem);
    padding: clamp(1.4rem, 5vw, 3.2rem);
    text-align: center;
    border-top: 3px solid var(--green);
}
.maintenance-site { margin-top: 1rem; color: var(--green-dark); font-weight: 720; overflow-wrap: anywhere; }
.maintenance-card h1 { margin: .65rem 0; font-size: clamp(1.65rem, 5vw, 2.6rem); }
.maintenance-card p:last-child { color: var(--muted); }
#sayfa-basi .list-home { padding-block-end: .75rem; }
#sayfa-basi .site-footer { padding-block-start: .5rem; }
.inner-page.collection-page { min-height: 0; padding-block-end: 1rem; }
.collection-page .test-list-pages:last-child { margin-block-end: 0; }
.test-list-pages { display: flex; align-items: center; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin-block: .8rem; }
.browse-filters {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: .55rem;
    margin-block: 1rem 1.25rem;
}
.browse-filter { max-width: 100%; }
.browse-filter[open] {
    flex-basis: 100%;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
}
.browse-filter > summary, .browse-link.button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .5rem .8rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--green-dark);
    font-size: .92rem;
    font-weight: 700;
}
.browse-filter > summary { cursor: pointer; list-style: none; }
.browse-filter > summary::-webkit-details-marker { display: none; }
.browse-filter > summary::after {
    content: '';
    width: .45rem;
    height: .45rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translateY(-2px);
}
.browse-filter[open] > summary { background: var(--mint); }
.browse-filter[open] > summary::after { transform: rotate(225deg) translateY(-2px); }
.browse-filter .chips { margin: .65rem 0 0; }
.browse-filter .chip { min-height: 44px; }
.category-section + .category-section { margin-top: clamp(1.25rem, 3vw, 2rem); }
.category-section h2 { margin-bottom: .65rem; }
.test-list-pages a[aria-current] { color: white; background: var(--green); }
.test-list-pages .button { min-height: 42px; }
.list-home .test-card h3, .list-home .home-list-section h2 { overflow-wrap: anywhere; }

.site-header .brand { min-width: 0; }
.site-header .brand-icon, .site-header .menu-toggle { flex: none; }
.site-header .brand > .brand-text { color: var(--site-logo-text, inherit); white-space: normal; overflow-wrap: anywhere; }
.exam-list-link { font-size: .9rem; }
@media (max-width: 760px) {
    .site-header .brand { flex: 1 1 0; }
    .site-header .brand > .brand-text { max-width: none; }
}
@media print {
    .exam-page .site-header { display: none !important; }
}

.theme-aegean {
    --ink: #123551;
    --muted: #385c74;
    --green: #16618a;
    --green-dark: #0c4868;
    --paper: #f2f8fc;
    --mint: #d9eef7;
    --line: #bbd9e7;
    --theme-header: #e9f6fc;
    --theme-hero-end: #f7fcf8;
    --radius: 20px;
}
.theme-copper {
    --ink: #392a2a;
    --muted: #6c5451;
    --green: #8b4232;
    --green-dark: #683023;
    --paper: #fcf7f3;
    --mint: #f6e3da;
    --line: #e4cec1;
    --theme-header: #fff2eb;
    --theme-hero-end: #fffaf0;
    --radius: 14px;
}
.theme-indigo {
    --ink: #24264e;
    --muted: #50547a;
    --green: #4b4f9d;
    --green-dark: #363977;
    --paper: #f6f6fd;
    --mint: #e8e8fd;
    --line: #d8d9ed;
    --theme-header: #edeeff;
    --theme-hero-end: #fcf7ff;
    --radius: 17px;
}
@media screen {
    :is(.theme-aegean, .theme-copper, .theme-indigo):not(.admin-page) :is(.site-header, .exam-header) {
        background: var(--site-header-bg, var(--theme-header));
    }
    :is(.theme-aegean, .theme-copper, .theme-indigo):not(.season-winter, .admin-page) .home-intro {
        background: linear-gradient(115deg, var(--mint), var(--theme-hero-end));
    }
    :is(.theme-aegean, .theme-copper, .theme-indigo):not(.admin-page) :is(.question-panel, .score-card) {
        border-block-start: 3px solid var(--green);
    }
}
@media screen {
    :is(.theme-aegean, .theme-copper, .theme-indigo) .breakdown thead { background: var(--mint); }
}
@media (max-width: 425px) {
    .breakdown th:not(:first-child), .breakdown td {
        padding-inline: .3rem;
        text-align: center;
        white-space: nowrap;
        font-size: .83rem;
    }
}

.brand-icon { flex: none; }

[class*="theme-custom-"] {
    --theme-accent: #2d755c;
    --theme-base: #c6e4d7;
    --green: var(--theme-accent);
    --green-dark: color-mix(in srgb, var(--theme-accent) 76%, #111b27);
    --ink: color-mix(in srgb, var(--theme-accent) 26%, #14202d);
    --muted: color-mix(in srgb, var(--theme-accent) 36%, #4a5866);
    --paper: color-mix(in srgb, var(--theme-base) 22%, white);
    --mint: color-mix(in srgb, var(--theme-accent) 15%, white);
    --line: color-mix(in srgb, var(--theme-accent) 25%, white);
    --theme-header: color-mix(in srgb, var(--theme-base) 27%, white);
    --theme-hero-end: var(--paper);
}
@media screen {
    body[class*="theme-custom-"]:not(.admin-page) :is(.site-header, .exam-header) { background: var(--site-header-bg, var(--theme-header)); }
    body[class*="theme-custom-"]:not(.admin-page, .season-winter) .home-intro { background: linear-gradient(115deg, var(--mint), var(--theme-hero-end)); }
    body[class*="theme-custom-"]:not(.admin-page) :is(.question-panel, .score-card) { border-block-start: 3px solid var(--green); }
    body[class*="theme-custom-"] .breakdown thead { background: var(--mint); }
}
@media (max-width: 760px) {
    .site-header .brand:not(:has(.brand-text)) { flex: none; }
}

.reading-page {
    width: min(100% - 2rem, 850px);
    overflow-wrap: anywhere;
}
.reading-page .page-heading { text-align: center; }
.reading-page .page-heading p { margin-inline: auto; }
.reading-page .prose, .reading-page .article-cover, .reading-page .contact-static-note { margin-inline: auto; }
@media (max-width: 425px) {
    .reading-page { width: calc(100% - 24px); }
}
body:has(> .reading-page) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.reading-page { flex: 1 0 auto; }

.points-page { max-width: 720px; }
.points-page .page-heading { margin-bottom: clamp(1.15rem, 3vw, 1.85rem); }
.points-card { padding: clamp(.95rem, 4vw, 1.8rem); }
.points-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 0 1.4rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    text-align: center;
}
.points-rules > div { display: grid; align-content: center; gap: .12rem; padding: .7rem .35rem; }
.points-rules > div + div { border-inline-start: 1px solid var(--line); }
.points-rules dt { color: var(--muted); font-size: .86rem; }
.points-rules dd { margin: 0; font-size: 1.08rem; font-weight: 800; color: var(--green-dark); }
.points-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.points-form input[type="number"] { min-height: 50px; background: var(--white); }
.points-form .button { min-height: 48px; justify-self: stretch; }
#puan-sonucu { scroll-margin-block-start: 1rem; }
.points-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
}
.points-result h2 { font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.points-score { font-variant-numeric: tabular-nums; color: var(--muted); }
.points-score strong { font-size: clamp(2rem, 8vw, 3.35rem); font-weight: 820; line-height: 1.1; color: var(--green-dark); }
.points-result meter { width: min(100%, 15rem); height: .9rem; }
.points-outcome { display: grid; justify-items: start; gap: .35rem; }
.points-outcome p { font-size: .9rem; color: var(--muted); }
.age-form input[type="date"] { min-width: 0; width: 100%; min-height: 50px; background: var(--white); }
.age-result {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
    padding: clamp(.8rem, 3vw, 1.25rem);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--mint);
    scroll-margin-top: 5rem;
}
.age-result h2, .age-explanation h2 { font-size: 1.16rem; }
.age-result h3, .age-explanation h3 { font-size: 1rem; }
.age-classes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.age-classes li { padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--green-dark); font-weight: 720; }
.age-next { border-top: 1px solid var(--line); padding-top: .65rem; }
.age-next :is(strong, time) { display: block; }
.age-explanation { display: grid; gap: .8rem; margin-top: 1rem; }
.age-explanation ul { margin: 0; padding-inline-start: 1.25rem; }
.age-explanation li + li { margin-top: .35rem; }
.age-rules { margin: 0; }
.age-rules > div { display: grid; grid-template-columns: 4.7rem minmax(0, 1fr); gap: .6rem; padding-block: .48rem; border-bottom: 1px solid var(--line); }
.age-rules dt { font-weight: 720; }
.age-rules dd { margin: 0; }
@media (max-width: 440px) {
    .points-fields { grid-template-columns: minmax(0, 1fr); gap: .6rem; }
}

.studio-bulk .studio-bulk-actions { align-items: center; gap: .55rem .8rem; margin-bottom: .75rem; }
.studio-bulk [data-bulk-select-label][hidden] { display: none; }

.category-heading .breadcrumbs { margin-block-end: .65rem; }
.category-heading .breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.category-heading .category-home-link { margin-block-start: .8rem; min-height: 44px; }
.category-heading .return-home-link { margin-block-end: .75rem; }
.detail-nav { gap: .4rem; margin-block-end: .85rem; }
.return-home-link, .detail-nav .button { min-height: 44px; }
.return-home-link svg, .detail-nav svg { width: 1rem; height: 1rem; flex: none; }
.test-detail-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.test-detail-nav .button { grid-row: 1; min-width: 0; }
.test-detail-nav .return-home-link { grid-column: 2; }
.detail-nav-previous { grid-column: 1; justify-self: start; }
.detail-nav-next { grid-column: 3; justify-self: end; }
.blog-detail-nav { justify-content: space-between; max-width: 850px; margin-inline: auto; }
.blog-detail-nav > :only-child { margin-inline: auto; }
@media (max-width: 480px) {
    .detail-nav { gap: .32rem; }
    .detail-nav .button { gap: .2rem; padding-inline: .35rem; font-size: .8rem; }
    .detail-nav svg { width: .85rem; height: .85rem; }
}
.blog-body-table, .blog-editor-content .tableWrapper { max-width: 100%; overflow-x: auto; margin-block: 1rem; }
.blog-body-table table, .blog-editor-content table { width: 100%; border-collapse: collapse; }
.blog-body-table :is(td, th), .blog-editor-content :is(td, th) {
    min-width: 5rem;
    border: 1px solid var(--line);
    padding: .55rem .7rem;
    vertical-align: top;
    text-align: start;
}
.blog-body-table th, .blog-editor-content th { background: var(--mint); }
.blog-body-table :is(td, th) p { margin: .25rem 0; }
.reading-content blockquote, .blog-editor-content blockquote {
    margin: 1rem 0;
    border-inline-start: 3px solid var(--green);
    padding: .4rem .9rem;
    color: var(--muted);
    background: var(--mint);
}
.reading-content hr, .blog-editor-content hr { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--line); }
.blog-inline-image { display: block; width: auto; height: auto; max-width: 100%; margin: 1rem auto; border-radius: 8px; }
