/*
Theme Name: Uni Pedia
Theme URI: https://uni-pedia.com/
Author: Filgamaa
Description: Dedicated Arabic directory shell for Uni Pedia. Uses the existing directory and results plugins.
Version: 0.1.0
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uni-pedia
Tags: education, rtl-language-support, custom-menu, custom-logo, featured-images, wide-blocks
*/

:root {
	--up-background: #f5f7fa;
	--up-surface: #fff;
	--up-ink: #102c43;
	--up-muted: #4f6475;
	--up-line: #d7e1e9;
	--up-primary: #076c72;
	--up-primary-dark: #045156;
	--up-teal: #076c72;
	--up-gold: #b27715;
	--up-radius: 16px;
	--up-container: 1240px;
	--up-padding: 20px;
	--up-gap: 24px;
	--up-shadow: 0 12px 32px rgb(16 44 67 / 6%);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--up-background); color: var(--up-ink); font-family: Tahoma, Arial, sans-serif; font-size: 1rem; line-height: 1.8; }
a { color: var(--up-primary); text-underline-offset: .2em; }
a:hover { color: var(--up-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--up-primary); outline-offset: 4px; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { line-height: 1.45; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-block: 0 18px; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.up-container { width: min(var(--up-container), calc(100% - var(--up-padding) * 2)); margin-inline: auto; min-width: 0; }
.up-skip-link { position: absolute; inset-inline-start: 20px; top: -100px; z-index: 99999; padding: 10px 20px; background: var(--up-surface); border: 2px solid var(--up-primary); }
.up-skip-link:focus { top: 12px; }
.up-header { background: var(--up-surface); border-bottom: 1px solid var(--up-line); }
.up-header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding-block: 22px; }
.up-brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--up-ink); }
.up-brand-name { font-size: 1.65rem; font-weight: 700; line-height: 1.4; }
.up-brand-note { color: var(--up-muted); font-size: .8rem; }
.custom-logo-link { display: block; }
.custom-logo { max-width: 210px; max-height: 72px; width: auto; }
.up-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; }
.up-menu li { position: relative; }
.up-menu a { display: inline-block; padding-block: 4px; font-weight: 700; text-decoration: none; }
.up-menu [aria-current="page"], .up-menu .current-menu-item > a { text-decoration: underline; }
.up-menu .sub-menu { padding-inline-start: 16px; list-style: none; }
.up-main { min-height: 50vh; padding-block: 42px 64px; }
.up-hero { padding-block: 16px 34px; max-width: 850px; }
.up-eyebrow { font-weight: 700; color: var(--up-primary); margin-block: 0 10px; }
.up-hero-description { max-width: 680px; color: var(--up-muted); font-size: 1.12rem; }
.up-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-block: 28px 42px; }
.up-tool { display: block; background: var(--up-surface); border: 1px solid var(--up-line); border-radius: var(--up-radius); padding: 22px; text-decoration: none; box-shadow: var(--up-shadow); }
.up-tool:hover { border-color: var(--up-primary); }
.up-tool h2 { margin-block: 0 8px; font-size: 1.15rem; }
.up-tool p { color: var(--up-muted); margin: 0; font-size: .92rem; }
.up-content-header { margin-bottom: 28px; }
.up-profile-layout, .up-archive-content, .up-single-article, .entry-content { min-width: 0; max-width: 100%; }
.up-profile-layout { display: block; }
.up-section-heading { margin-block: 24px 14px; }
.up-section-heading h2 { margin: 0; }
.entry-content > * { max-width: 100%; }
.entry-content > .alignwide { width: 100%; }
.entry-content > .alignfull { width: 100%; margin-inline: 0; }
.entry-content table { border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--up-line); padding: 10px; }
.entry-content pre { overflow: auto; padding: 20px; background: var(--up-surface); }
.entry-content figure { margin-inline: 0; }
.wp-caption, .gallery-caption { max-width: 100%; color: var(--up-muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.pagination-wrap, .navigation.pagination { margin-top: 32px; }
.page-numbers { display: inline-block; padding: 6px 12px; }
.up-footer { border-top: 1px solid var(--up-line); background: var(--up-surface); padding-block: 32px; }
.up-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.up-footer-brand { font-weight: 700; margin-block: 0 8px; }
.up-footer-note { color: var(--up-muted); margin: 0; max-width: 520px; font-size: .92rem; }
.up-footer-links { display: flex; flex-wrap: wrap; align-items: start; gap: 12px 24px; }
.up-article-card { padding: 24px; border-bottom: 1px solid var(--up-line); }
.up-article-card h2 { margin-top: 0; }
.up-comment-form label { display: block; }
.up-comment-form input:not([type="checkbox"]), .up-comment-form textarea { max-width: 100%; padding: 10px; border: 1px solid var(--up-line); border-radius: 8px; }
.up-comment-form input[type="submit"] { color: #fff; background: var(--up-primary); cursor: pointer; }
.up-comments { margin-top: 40px; }
.up-comments .comment-list { padding-inline-start: 24px; }
.up-comments .comment-body { padding-block: 20px; border-bottom: 1px solid var(--up-line); }

@media (max-width: 700px) {
	:root { --up-padding: 16px; }
	.up-header-inner { padding-block: 16px; }
	.up-header nav { width: 100%; }
	.up-menu { gap: 4px 18px; font-size: .88rem; }
	.up-main { padding-block: 28px 44px; }
	.up-hero { padding-block: 6px 20px; }
	.up-tool-grid { gap: 12px; margin-block: 20px 30px; }
	.up-tool { padding: 18px; }
}

@media print {
	.up-header, .up-footer, .up-skip-link { display: none; }
	body { color: #000; background: #fff; }
	.up-main { padding: 0; }
}
