/*
Theme Name: Orvana
Author: Orvana
Description: תבנית מגזין נקייה בעברית (RTL) לאתרי תוכן ומידע במגוון תחומים. כתבה מובילה בעמוד הבית, כרטיסים, סרגל צד, זמן קריאה, פס התקדמות קריאה וכתבות קשורות. משנה רק את העיצוב: לא נוגעת בתוכן, בכתובות, בהגדרות האתר או בכותרות SEO, ושומרת את התפריטים והווידג׳טים הקיימים.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 7.1
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: orvana
Update URI: false
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, rtl-language-support, threaded-comments
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--ov-ink: #0f3d4a;
	--ov-text: #1f2a2e;
	--ov-muted: #5d6b70;
	--ov-bg: #f7f6f2;
	--ov-surface: #ffffff;
	--ov-line: #e4e1d8;
	--ov-soft: #eef3f2;
	--ov-accent: #e36414;
	--ov-radius: 14px;
	--ov-shadow: 0 1px 2px rgba(15, 61, 74, .06), 0 8px 24px -12px rgba(15, 61, 74, .18);
	--ov-font: "Open Sans", "Segoe UI", Arial, sans-serif;
	--ov-head: "Varela Round", "Open Sans", Arial, sans-serif;
	--ov-wrap: 1180px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ov-bg);
	color: var(--ov-text);
	font: 400 17px/1.75 var(--ov-font);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--ov-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ov-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--ov-head); color: var(--ov-ink); line-height: 1.3; font-weight: 400; margin: 1.4em 0 .5em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--ov-accent); 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 !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	top: 8px; right: 8px; z-index: 1000; padding: 10px 16px;
	background: var(--ov-ink); color: #fff; border-radius: 8px;
}

.ov-wrap { width: 100%; max-width: var(--ov-wrap); margin: 0 auto; padding: 0 20px; }
.ov-narrow { max-width: 860px; }

/* ==========================================================================
   Header
   ========================================================================== */
.ov-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 200; pointer-events: none; }
.ov-progress span { display: block; height: 100%; background: var(--ov-accent); transform: scaleX(0); transform-origin: right; }

.ov-header { background: var(--ov-surface); border-bottom: 1px solid var(--ov-line); }
.ov-topbar { background: var(--ov-ink); color: #d9e6e8; font-size: 13px; }
.ov-topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.ov-tagline { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ov-brand { padding-top: 26px; padding-bottom: 22px; text-align: center; }
.ov-brand .custom-logo { max-height: 80px; width: auto; }
.ov-site-title { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ov-ink); }
.ov-site-mark {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
	background: var(--ov-accent); color: #fff; font: 400 24px/1 var(--ov-head);
}
.ov-site-name { font: 400 clamp(26px, 4vw, 38px)/1.1 var(--ov-head); letter-spacing: -.01em; }

.ov-nav { border-top: 1px solid var(--ov-line); position: sticky; top: 0; z-index: 100; background: var(--ov-surface); }
.ov-nav-inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.ov-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.ov-menu li { position: relative; }
.ov-menu a {
	display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none;
	font-weight: 600; font-size: 15px; color: var(--ov-ink);
}
.ov-menu a:hover, .ov-menu .current-menu-item > a, .ov-menu .current-cat > a { background: var(--ov-soft); color: var(--ov-ink); }
.ov-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; right: 0; min-width: 220px;
	background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: 12px; box-shadow: var(--ov-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; z-index: 10;
}
.ov-menu li:hover > .sub-menu, .ov-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ov-menu .sub-menu a { border-radius: 8px; font-weight: 400; }

.ov-menu-toggle {
	display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--ov-line);
	border-radius: 999px; padding: 8px 14px; font: 600 15px var(--ov-font); color: var(--ov-ink); cursor: pointer;
}
.ov-burger, .ov-burger::before, .ov-burger::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.ov-burger::before, .ov-burger::after { content: ""; position: absolute; right: 0; }
.ov-burger::before { top: -6px; }
.ov-burger::after { top: 6px; }

.ov-nav-search { width: 240px; }

/* ==========================================================================
   Search form & buttons
   ========================================================================== */
.ov-search { display: flex; border: 1px solid var(--ov-line); border-radius: 999px; overflow: hidden; background: var(--ov-surface); }
.ov-search-field { flex: 1; min-width: 0; border: 0; padding: 8px 14px; font: inherit; font-size: 15px; background: transparent; color: var(--ov-text); }
.ov-search-field:focus { outline: none; }
.ov-search:focus-within { border-color: var(--ov-ink); }
.ov-search-submit, .ov-btn, .form-submit .submit {
	border: 0; background: var(--ov-ink); color: #fff; font: 600 14px var(--ov-font);
	padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block;
}
.ov-btn, .form-submit .submit { border-radius: 999px; padding: 11px 22px; }
.ov-search-submit:hover, .ov-btn:hover, .form-submit .submit:hover { background: var(--ov-accent); color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.ov-main { padding: 34px 0 64px; }
.ov-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.ov-no-sidebar .ov-layout { grid-template-columns: minmax(0, 1fr); }
.ov-no-sidebar .ov-single .ov-content { max-width: 820px; margin: 0 auto; }

.ov-page-head { margin: -34px 0 34px; padding: 40px 0 34px; background: var(--ov-surface); border-bottom: 1px solid var(--ov-line); }
.ov-page-title { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.ov-page-desc { color: var(--ov-muted); margin-top: 10px; max-width: 720px; }
.ov-page-desc p:last-child { margin: 0; }

.ov-section-title {
	font-size: 22px; margin: 0 0 20px; padding-bottom: 10px; display: flex; align-items: center; gap: 12px;
	border-bottom: 2px solid var(--ov-line);
}
.ov-section-title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--ov-accent); flex: none; }

/* ==========================================================================
   Cards
   ========================================================================== */
.ov-lead { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; margin-bottom: 44px; }
.ov-lead .ov-card--lead { grid-row: span 2; }

.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.ov-no-sidebar .ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ov-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.ov-card {
	background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
	overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.ov-card:hover { box-shadow: var(--ov-shadow); transform: translateY(-2px); }
.ov-card-media { display: block; aspect-ratio: 16 / 10; background: var(--ov-soft); overflow: hidden; }
.ov-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ov-card:hover .ov-card-media img { transform: scale(1.03); }
.ov-card-ph {
	width: 100%; height: 100%; display: grid; place-items: center;
	font: 400 56px/1 var(--ov-head); color: rgba(15, 61, 74, .25);
	background: linear-gradient(135deg, var(--ov-soft), #f9efe6);
}
.ov-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ov-card-title { margin: 0; font-size: 20px; line-height: 1.35; }
.ov-card-title a { text-decoration: none; color: var(--ov-ink); }
.ov-card-title a:hover { color: var(--ov-accent); }
.ov-card-excerpt { margin: 0; color: var(--ov-muted); font-size: 15.5px; line-height: 1.65; }
.ov-card .ov-meta { margin-top: auto; }

.ov-card--lead .ov-card-media { aspect-ratio: 16 / 9; }
.ov-card--lead .ov-card-title { font-size: clamp(24px, 3vw, 34px); }
.ov-card--lead .ov-card-body { padding: 24px 26px 26px; }
.ov-card--side { flex-direction: row; }
.ov-card--side .ov-card-media { width: 42%; flex: none; aspect-ratio: auto; min-height: 140px; }
.ov-card--side .ov-card-title { font-size: 17px; }
.ov-card--compact .ov-card-title { font-size: 16px; }
.ov-card--compact .ov-card-body { padding: 14px 16px 16px; }

.ov-cat {
	align-self: flex-start; display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
	color: var(--ov-accent); text-decoration: none; background: rgba(227, 100, 20, .09);
	padding: 3px 10px; border-radius: 999px;
}
.ov-cat:hover { background: var(--ov-accent); color: #fff; }

.ov-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ov-muted); }
.ov-meta a { color: var(--ov-muted); text-decoration: none; }
.ov-meta a:hover { color: var(--ov-accent); }
.ov-sep { opacity: .6; }

/* Pagination */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
	border: 1px solid var(--ov-line); border-radius: 999px; background: var(--ov-surface);
	text-decoration: none; font-weight: 600; color: var(--ov-ink);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ov-ink); border-color: var(--ov-ink); color: #fff; }

.ov-empty { background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius); padding: 32px; }
.ov-empty h2 { margin-top: 0; }

/* ==========================================================================
   Single
   ========================================================================== */
.ov-single-head { margin: -34px 0 30px; padding: 34px 0 30px; background: var(--ov-surface); border-bottom: 1px solid var(--ov-line); }
.ov-single-title { font-size: clamp(30px, 4.4vw, 46px); margin: 12px 0 14px; line-height: 1.2; }
.ov-standfirst { font-size: 20px; color: var(--ov-muted); line-height: 1.6; margin-bottom: 16px; }
.ov-crumbs { font-size: 13.5px; color: var(--ov-muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ov-crumbs a { color: var(--ov-muted); text-decoration: none; }
.ov-crumbs a:hover { color: var(--ov-accent); }

.ov-single-media { margin: 0 auto 34px; }
.ov-single-media img { width: 100%; border-radius: var(--ov-radius); display: block; }

.entry-content { font-size: 18px; line-height: 1.85; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-size: 28px; }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--ov-accent); }
.entry-content ul, .entry-content ol { padding-right: 1.4em; padding-left: 0; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-right: 4px solid var(--ov-accent);
	background: var(--ov-surface); border-radius: 0 0 0 var(--ov-radius); font-size: 20px; color: var(--ov-ink);
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content img { border-radius: 10px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; background: var(--ov-surface); }
.entry-content th, .entry-content td { border: 1px solid var(--ov-line); padding: 10px 12px; text-align: right; }
.entry-content th { background: var(--ov-soft); color: var(--ov-ink); }
.entry-content pre { background: #10282f; color: #e5f1f3; padding: 16px; border-radius: 10px; overflow: auto; direction: ltr; text-align: left; }
.entry-content hr { border: 0; border-top: 1px solid var(--ov-line); margin: 2em 0; }

.ov-page-links { margin: 24px 0; display: flex; gap: 8px; align-items: center; }

.ov-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.ov-tags a {
	font-size: 13.5px; text-decoration: none; padding: 5px 12px; border-radius: 999px;
	background: var(--ov-surface); border: 1px solid var(--ov-line); color: var(--ov-ink);
}
.ov-tags a:hover { border-color: var(--ov-accent); color: var(--ov-accent); }

.post-navigation { margin: 34px 0; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a {
	display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; text-decoration: none;
	background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
}
.post-navigation a:hover { box-shadow: var(--ov-shadow); }
.post-navigation .nav-next { text-align: left; }
.ov-nav-label { font-size: 12.5px; color: var(--ov-muted); font-weight: 700; }
.ov-nav-title { font-family: var(--ov-head); color: var(--ov-ink); line-height: 1.4; }

.ov-related { margin: 44px 0; }

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.ov-sidebar { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius); padding: 20px 22px; }
.widget-title, .widget .wp-block-heading { font-size: 18px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ov-line); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 9px 0; border-bottom: 1px solid var(--ov-line); line-height: 1.5; }
.widget li:last-child { border-bottom: 0; }
.widget a { text-decoration: none; }
.widget select { width: 100%; padding: 8px; border: 1px solid var(--ov-line); border-radius: 8px; font: inherit; }
.widget .wp-block-search__inside-wrapper { border: 1px solid var(--ov-line); border-radius: 999px; overflow: hidden; }
.widget .wp-block-search__input { border: 0; padding: 8px 14px; }
.widget .wp-block-search__button { border: 0; background: var(--ov-ink); color: #fff; margin: 0; padding: 8px 16px; }

/* ==========================================================================
   Comments
   ========================================================================== */
.ov-comments { margin-top: 44px; }
.ov-comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.ov-comment-list .children { list-style: none; padding-right: 28px; margin: 0; }
.ov-comment-list .comment-body {
	background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius);
	padding: 16px 18px; margin-bottom: 14px;
}
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--ov-muted); text-decoration: none; }
.comment-respond { background: var(--ov-surface); border: 1px solid var(--ov-line); border-radius: var(--ov-radius); padding: 24px; }
.comment-reply-title { margin-top: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid var(--ov-line); border-radius: 10px; padding: 10px 12px; font: inherit; background: var(--ov-bg);
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.ov-note { color: var(--ov-muted); }

/* ==========================================================================
   404
   ========================================================================== */
.ov-404 { text-align: center; padding-top: 30px; }
.ov-404-code { font: 400 110px/1 var(--ov-head); color: var(--ov-accent); margin: 0 0 10px; }
.ov-404 .ov-search { max-width: 420px; margin: 24px auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.ov-footer { background: var(--ov-ink); color: #c9dadd; margin-top: 30px; position: relative; }
.ov-footer a { color: #fff; }
.ov-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.ov-footer-title { font: 400 26px/1.2 var(--ov-head); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.ov-footer .widget { background: transparent; border: 0; padding: 0; }
.ov-footer .widget-title, .ov-footer .widget .wp-block-heading { color: #fff; border-color: rgba(255, 255, 255, .15); }
.ov-footer .widget li { border-color: rgba(255, 255, 255, .1); }
.ov-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ov-footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.ov-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.ov-footer-menu a { text-decoration: none; color: #c9dadd; }
.ov-footer-menu a:hover { color: #fff; }
.ov-copy { margin: 0; }
.ov-top {
	position: fixed; left: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
	display: grid; place-items: center; background: var(--ov-accent); color: #fff !important;
	text-decoration: none; font-size: 20px; box-shadow: var(--ov-shadow);
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; z-index: 90;
}
.ov-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ==========================================================================
   WordPress core classes
   ========================================================================== */
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.aligncenter { display: block; margin-right: auto; margin-left: auto; }
.alignwide { margin-right: -40px; margin-left: -40px; max-width: calc(100% + 80px); }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--ov-muted); text-align: center; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sticky .ov-card-title::before { content: "★ "; color: var(--ov-accent); }
.bypostauthor > .comment-body { border-color: var(--ov-accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.ov-layout { grid-template-columns: minmax(0, 1fr); }
	.ov-sidebar { position: static; }
	.ov-lead { grid-template-columns: minmax(0, 1fr); }
	.ov-lead .ov-card--lead { grid-row: auto; }
	.ov-no-sidebar .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ov-footer-grid { grid-template-columns: 1fr 1fr; }
	.ov-footer-about { grid-column: 1 / -1; }
	.alignwide { margin-right: 0; margin-left: 0; max-width: 100%; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.ov-topbar .ov-tagline { display: none; }
	.ov-menu-toggle { display: inline-flex; }
	.ov-nav-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
	.ov-nav-search { flex: 1; width: auto; }
	.ov-menu { display: none; flex-direction: column; flex-basis: 100%; order: 3; padding-bottom: 8px; }
	.ov-nav.is-open .ov-menu { display: flex; }
	.ov-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 16px 0 0; }
	.ov-grid, .ov-no-sidebar .ov-grid, .ov-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.ov-card--side { flex-direction: column; }
	.ov-card--side .ov-card-media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
	.entry-content { font-size: 17px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: right; }
	.ov-footer-grid { grid-template-columns: 1fr; }
	.alignright, .alignleft { float: none; margin: 1em auto; display: block; }
}

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

@media print {
	.ov-header, .ov-footer, .ov-sidebar, .ov-related, .ov-comments, .post-navigation, .ov-progress, .ov-top { display: none !important; }
	body { background: #fff; }
	.ov-layout { display: block; }
}
