/*
Theme Name: Sınıfım
Theme URI: https://testimiz.com.tr/
Author: Sınıfım Tema
Description: İlkokul ve ortaokul test, çalışma kâğıdı ve dosya siteleri için canlı, çocuk dostu (mavi, kırmızı, beyaz) özgün WordPress teması. Defter sayfası temalı sınıf seçici, üç kademeli menü, öne çıkan yazılar, konu blokları, popüler yazılar ve PDF indir düğmeleri içerir.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sinifim
Tags: education, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
	--blue: #1A5FE0;
	--blue-dark: #0a2563;
	--blue-soft: #eaf1fd;
	--line: #c9dcfa;
	--paper: #f5f8fe;
	--red: #D62839;
	--red-dark: #96202b;
	--red-soft: #fde9eb;
	--ink: #14233f;
	--muted: #55657f;
	--white: #fff;
	--radius: 16px;
	--font-head: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
	--font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1180px;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 1.0625rem/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, video, iframe, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--blue-dark); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0; padding: 12px 18px;
	background: var(--white); color: var(--blue-dark); z-index: 1000; top: 8px; left: 8px; border-radius: 8px; font-weight: 800;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Üst bilgi ---------- */
.site-header { background: var(--white); border-top: 6px solid var(--red); }
.header-main { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.branding { flex: 1 1 auto; min-width: 0; }
.site-title {
	font: 800 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--font-head);
	color: var(--blue); text-decoration: none; letter-spacing: -.01em;
}
.site-title:hover { color: var(--red); }
.site-tagline { margin: 2px 0 0; color: var(--muted); font-weight: 700; font-size: .95rem; }
.custom-logo { max-height: 64px; width: auto; display: block; }

.search-form { display: flex; border: 3px solid var(--blue); border-radius: 999px; overflow: hidden; background: var(--white); }
.search-form input[type="search"] {
	flex: 1; min-width: 0; border: 0; padding: 10px 18px; font: 600 1rem var(--font-body); color: var(--ink); background: transparent;
}
.search-form input[type="search"]:focus-visible { outline: none; }
.search-form:focus-within { border-color: var(--red); }
.search-form button {
	border: 0; background: var(--blue); color: var(--white); padding: 0 22px; font: 800 1rem var(--font-head); cursor: pointer;
}
.search-form button:hover { background: var(--red); }
.header-search { flex: 0 1 380px; }

/* ---------- Menü ---------- */
.main-nav { background: var(--blue); }
.main-nav .menu, .main-nav .sub-menu, .main-nav .children { list-style: none; margin: 0; padding: 0; }
.main-nav .menu { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 0; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 9px 16px; color: var(--white); text-decoration: none;
	font: 700 1rem/1.3 var(--font-head); border-radius: 999px;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li:focus-within > a,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-cat > a { background: var(--white); color: var(--red); }

.main-nav .sub-menu, .main-nav .children {
	display: none; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 230px;
	background: var(--white); border: 3px solid var(--blue); border-radius: 14px; padding: 6px;
}
.main-nav .sub-menu a, .main-nav .children a { color: var(--blue-dark); border-radius: 10px; font-weight: 600; padding: 8px 12px; }
.main-nav .sub-menu a:hover, .main-nav .children a:hover { background: var(--blue-soft); color: var(--red); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu,
.main-nav li:hover > .children, .main-nav li:focus-within > .children { display: block; }
.main-nav .sub-menu .sub-menu, .main-nav .children .children { left: 100%; top: -9px; }
.sub-toggle { display: none; }
.nav-toggle {
	display: none; border: 0; border-bottom: 4px solid var(--blue-dark); background: var(--blue); color: var(--white);
	font: 800 1rem var(--font-head); padding: 8px 18px; border-radius: 12px; cursor: pointer;
}

/* ---------- Ana sayfa: defter sayfası ---------- */
.hero {
	--margin: 64px;
	background-color: var(--white);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, var(--line) 35px, var(--line) 36px);
	border-bottom: 4px solid var(--blue);
}
.hero-inner { position: relative; padding-top: 40px; padding-bottom: 44px; padding-left: calc(var(--margin) + 28px); }
.hero-inner::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--margin); width: 2px; background: var(--red); }
.hero-title { font-weight: 800; font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 4px; color: var(--blue-dark); letter-spacing: -.01em; }
.hero-text { font-size: 1.15rem; font-weight: 700; color: var(--muted); margin-bottom: 24px; }
.grades { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.grade {
	display: flex; flex-direction: column; align-items: center; padding: 8px 0 7px; text-decoration: none;
	background: var(--blue); color: var(--white); border-radius: 16px; border-bottom: 6px solid var(--blue-dark);
	font-family: var(--font-head); transition: transform .12s, background .12s;
}
.grade b { font-size: 2.3rem; line-height: 1.05; font-weight: 800; }
.grade small { font-size: .85rem; font-weight: 700; }
.grade:hover { background: var(--red); border-bottom-color: var(--red-dark); color: var(--white); transform: translateY(-3px); }
.grade:active { transform: translateY(2px); border-bottom-width: 3px; }

/* ---------- Öne çıkanlar ---------- */
.featured {
	display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px;
	padding-top: 28px; padding-bottom: 8px;
}
.feat { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--blue); min-height: 190px; border: 3px solid var(--white); }
.feat-0 { grid-row: 1 / span 2; min-height: 400px; }
.feat-link { position: absolute; inset: 0; display: block; color: var(--white); text-decoration: none; }
.feat-media, .feat-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 62, .88), rgba(6, 22, 62, 0) 62%); }
.feat-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px; display: block; }
.feat-title { display: block; font: 800 1.2rem/1.2 var(--font-head); }
.feat-0 .feat-title { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.feat-meta { display: block; font-size: .9rem; font-weight: 700; opacity: .9; margin-top: 4px; }
.feat:hover { border-color: var(--red); }
.feat .ph { border-radius: 0; }

/* ---------- Yer tutucu görsel ---------- */
.ph {
	text-decoration: none;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 100%; height: 100%; min-height: 100%; background: var(--blue-soft); color: var(--blue); font-family: var(--font-head);
}
.ph b { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 1; font-weight: 800; }
.ph small { font-size: 1rem; font-weight: 800; letter-spacing: .02em; }
.feat .ph { background: var(--blue); color: rgba(255, 255, 255, .92); align-items: flex-end; justify-content: flex-start; padding: 10px 22px; }
.feat .ph b { font-size: 3.4rem; }
.feat-0 .ph b { font-size: 6rem; }
.feat-1 .ph { background: var(--red); }
.row:nth-child(even) .ph, .card:nth-child(even) .ph { background: var(--red-soft); color: var(--red); }

.card-thumb, .row-thumb, .mini-thumb, .feat-link { text-decoration: none; }

/* ---------- Bölüm başlıkları ---------- */
.block { padding-top: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 1.6rem; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 10px; height: 28px; border-radius: 6px; background: var(--red); flex: none; }
.pill-link {
	text-decoration: none; font: 800 .95rem var(--font-head); background: var(--white); color: var(--blue);
	border: 2px solid var(--blue); border-radius: 999px; padding: 4px 16px; white-space: nowrap;
}
.pill-link:hover { background: var(--blue); color: var(--white); }
.related .section-title, .comments .section-title { margin-bottom: 14px; }

/* ---------- Yerleşim ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.primary { min-width: 0; }
.rows { display: grid; gap: 14px; margin-top: 14px; }
.primary > .section-head + .rows, .primary > .section-head + p { margin-top: 0; }

/* ---------- Kartlar ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card:hover { border-color: var(--blue); }
.card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-soft); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.card-title a { color: var(--blue-dark); text-decoration: none; }
.card-title a:hover { color: var(--red); }

/* ---------- Liste satırları ---------- */
.row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 12px; }
.row:hover { border-color: var(--blue); }
.row-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--blue-soft); }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-size: 1.25rem; font-weight: 700; margin: 0; }
.row-title a { color: var(--blue-dark); text-decoration: none; }
.row-title a:hover { color: var(--red); }
.row-excerpt { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-meta { margin-top: auto; }

/* ---------- Rozet ve meta ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges:empty { display: none; }
.badge { font: 800 .8rem/1 var(--font-head); padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--white); }
.badge-red { background: var(--red); }
.badge-blue { background: var(--blue); }
.badge:hover { background: var(--blue-dark); color: var(--white); }
.meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.meta-comments { background: var(--blue-soft); color: var(--blue-dark); border-radius: 999px; padding: 1px 10px; }

/* ---------- Yazı ---------- */
.breadcrumbs { margin-bottom: 14px; font-size: .92rem; font-weight: 700; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--red); font-weight: 800; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs [aria-current] { color: var(--muted); }

.entry { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 28px; }
.entry-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 10px 0 8px; }
.entry-header { margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border-radius: 999px; text-decoration: none;
	font: 800 1.05rem var(--font-head); color: var(--white); border-bottom: 5px solid; transition: transform .12s;
}
.btn-blue { background: var(--blue); border-color: var(--blue-dark); }
.btn-red { background: var(--red); border-color: var(--red-dark); }
.btn:hover { color: var(--white); transform: translateY(-2px); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.entry-thumb { margin: 0 0 20px; border-radius: 14px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; }

.entry-content { font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--blue-soft); }
.entry-content blockquote { margin: 1.2em 0; padding: 8px 20px; border-left: 6px solid var(--red); background: var(--red-soft); border-radius: 0 12px 12px 0; }
.entry-content a[href$=".pdf"] {
	display: inline-block; background: var(--red); color: var(--white); padding: 4px 16px; border-radius: 999px;
	text-decoration: none; font-weight: 800; margin: 2px 0;
}
.entry-content a[href$=".pdf"]:hover { background: var(--red-dark); }
.tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { background: var(--blue-soft); color: var(--blue-dark); padding: 3px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .9rem; }
.tags a:hover { background: var(--blue); color: var(--white); }

.post-navigation { margin: 22px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-navigation a { display: block; background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; font: 700 1rem/1.3 var(--font-head); color: var(--blue-dark); }
.post-navigation a:hover { border-color: var(--red); }
.post-navigation .nav-next { text-align: right; }
.nav-sub { display: block; font-size: .82rem; color: var(--red); font-weight: 800; }
.related { margin-top: 28px; }

.ad-slot { margin: 18px 0; text-align: center; overflow: hidden; }

/* ---------- Arşiv, arama, 404 ---------- */
.archive-head { margin-bottom: 8px; }
.archive-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 6px; }
.archive-desc { color: var(--muted); font-weight: 600; }
.chips { list-style: none; margin: 12px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; background: var(--white); border: 2px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 3px 14px; text-decoration: none; font: 800 .95rem var(--font-head); }
.chips a:hover { background: var(--blue); color: var(--white); }
.empty { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 24px; }
.notfound { text-align: center; padding: 56px 0 72px; max-width: 560px; margin: 0 auto; }
.notfound-code { font: 800 6rem/1 var(--font-head); color: var(--red); margin: 0; }
.notfound .search-form { margin: 18px 0; }

/* ---------- Sayfalama ---------- */
.pagination { margin-top: 24px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a.page-numbers, .pagination span.page-numbers {
	display: block; min-width: 42px; text-align: center; padding: 6px 14px; border-radius: 999px; text-decoration: none;
	background: var(--white); border: 2px solid var(--line); color: var(--blue-dark); font: 800 1rem var(--font-head);
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--red); }
.pagination span.current { background: var(--red); border-color: var(--red); color: var(--white); }
.pagination span.dots { border-color: transparent; background: transparent; }

/* ---------- Kenar çubuğu ---------- */
.widget { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.widget-title { font-size: 1.2rem; font-weight: 800; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 3px solid var(--red); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget a { font-weight: 700; text-decoration: none; }
.widget .children, .widget .sub-menu { padding-left: 14px; margin-top: 6px; }
.mini-list li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; }
.mini-thumb { display: block; width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--blue-soft); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb .ph b { font-size: 1.6rem; }
.mini-thumb .ph small { font-size: .6rem; }
.mini-title { color: var(--blue-dark); font: 700 .98rem/1.3 var(--font-head); display: block; }
.mini-title:hover { color: var(--red); }
.mini-meta { display: block; font-size: .82rem; font-weight: 700; color: var(--muted); }

/* ---------- Yorumlar ---------- */
.comments { margin-top: 28px; }
.comment-list { list-style: none; margin: 0 0 20px; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; }
.comment-author .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: .85rem; color: var(--muted); }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-respond { background: var(--white); border: 2px solid var(--line); border-radius: 20px; padding: 22px; }
.comment-reply-title { font: 800 1.4rem var(--font-head); color: var(--blue-dark); }
.comment-form label { display: block; font-weight: 800; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 14px; font: 600 1rem var(--font-body);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); outline: none; }
.comment-form .submit {
	border: 0; border-bottom: 5px solid var(--red-dark); background: var(--red); color: var(--white); font: 800 1.05rem var(--font-head);
	padding: 10px 26px; border-radius: 999px; cursor: pointer;
}
.comment-form .submit:hover { background: var(--red-dark); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--blue-dark); color: #d5e3ff; border-top: 6px solid var(--red); margin-top: 24px; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 8px; }
.site-footer .widget { background: transparent; border: 0; padding: 0; margin: 0 0 16px; }
.site-footer .widget-title { color: var(--white); border-bottom-color: var(--red); }
.site-footer a, .site-footer .widget a { color: #fff; }
.site-footer a:hover { color: #ffc9ce; }
.site-footer .widget li { border-bottom-color: rgba(255, 255, 255, .2); }
.site-footer .mini-title { color: #fff; }
.site-footer .mini-meta { color: #b7ccf5; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 24px; font-size: .92rem; }
.footer-bottom .footer-text, .footer-bottom p { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-weight: 700; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--muted); text-align: center; }
.sticky, .bypostauthor, .gallery-caption { display: block; }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.header-search { flex-basis: 280px; }
}

@media (max-width: 760px) {
	.header-main { flex-wrap: wrap; gap: 12px; }
	.header-search { order: 3; flex: 1 1 100%; }
	.nav-toggle { display: block; }
	.main-nav { display: none; }
	.main-nav.is-open { display: block; }
	.main-nav .menu { display: block; padding: 8px 0 12px; }
	.main-nav a { border-radius: 10px; }
	.main-nav li { display: block; }
	.main-nav li > a { display: inline-block; width: calc(100% - 48px); vertical-align: middle; }
	.main-nav li:not(.menu-item-has-children):not(.cat-parent) > a { width: 100%; }
	.main-nav .menu > li > a:hover, .main-nav .menu > li:focus-within > a { background: transparent; color: var(--white); }
	.main-nav .current-menu-item > a, .main-nav .current-cat > a { background: var(--white); color: var(--red); }
	.sub-toggle {
		display: inline-block; vertical-align: middle; width: 40px; height: 40px; margin-left: 6px; border: 0; border-radius: 10px;
		background: rgba(255, 255, 255, .18); cursor: pointer; position: relative;
	}
	.sub-toggle::before { content: ""; position: absolute; left: 14px; top: 13px; width: 9px; height: 9px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); }
	.is-open > .sub-toggle::before { transform: rotate(-135deg); top: 17px; }
	.main-nav .sub-menu, .main-nav .children { position: static; display: none; min-width: 0; margin: 4px 0 4px 12px; border-width: 2px; }
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu,
	.main-nav li:hover > .children, .main-nav li:focus-within > .children { display: none; }
	.main-nav li.is-open > .sub-menu, .main-nav li.is-open > .children { display: block; }
	.main-nav .sub-menu .sub-menu, .main-nav .children .children { margin-left: 8px; }
	.main-nav .sub-menu li > a, .main-nav .children li > a { width: calc(100% - 48px); }

	.hero { --margin: 16px; }
	.hero-inner { padding-left: calc(var(--margin) + 18px); padding-top: 28px; padding-bottom: 30px; }
	.grades { gap: 8px; }
	.grade b { font-size: 1.8rem; }

	.featured { grid-template-columns: 1fr; grid-template-rows: none; }
	.feat-0 { grid-row: auto; min-height: 260px; }
	.row { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; }
	.row-excerpt { display: none; }
	.row-title { font-size: 1.05rem; }
	.entry { padding: 18px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
	.site-header, .site-footer, .sidebar, .ad-slot, .comments, .related, .post-navigation, .actions { display: none; }
	body { background: #fff; }
	.entry { border: 0; padding: 0; }
}
