/*
Theme Name: Notara
Author: Notara
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: notara
Update URI: false
Tags: blog, news, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, rtl-language-support, threaded-comments
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--nt-ink: #161616;
	--nt-text: #262626;
	--nt-muted: #6b6b6b;
	--nt-paper: #fffdf8;
	--nt-shade: #f3efe6;
	--nt-rule: #d9d3c7;
	--nt-accent: #c8102e;
	--nt-serif: "Miriam Libre", "Times New Roman", serif;
	--nt-sans: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
	--nt-wrap: 1200px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nt-paper); color: var(--nt-text); font: 400 17px/1.75 var(--nt-sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--nt-ink); text-underline-offset: 3px; }
a:hover { color: var(--nt-accent); }
h1, h2, h3, h4, h5, h6 { font-family: var(--nt-serif); color: var(--nt-ink); font-weight: 700; line-height: 1.25; margin: 1.4em 0 .5em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--nt-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(--nt-ink); color: #fff; }

.nt-wrap { width: 100%; max-width: var(--nt-wrap); margin: 0 auto; padding: 0 22px; }
.nt-narrow { max-width: 820px; }

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

.nt-masthead { background: var(--nt-paper); }
.nt-mast-top {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding-top: 12px; padding-bottom: 12px; font-size: 13.5px; color: var(--nt-muted);
	border-bottom: 1px solid var(--nt-rule);
}
.nt-mast-search { width: 260px; }
.nt-brand { text-align: center; padding-top: 26px; padding-bottom: 18px; border-bottom: 4px double var(--nt-ink); }
.nt-brand .custom-logo { max-height: 90px; width: auto; }
.nt-site-title { font: 700 clamp(34px, 6vw, 64px)/1.05 var(--nt-serif); color: var(--nt-ink); text-decoration: none; letter-spacing: -.01em; }
.nt-tagline { margin: 10px 0 0; font-size: 14px; color: var(--nt-muted); letter-spacing: .04em; }

.nt-nav { position: sticky; top: 0; z-index: 100; background: var(--nt-paper); border-bottom: 1px solid var(--nt-ink); }
.nt-nav-inner { display: flex; align-items: center; justify-content: center; min-height: 50px; }
.nt-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nt-menu > li { position: relative; }
.nt-menu > li + li::before { content: ""; position: absolute; right: 0; top: 50%; width: 1px; height: 16px; margin-top: -8px; background: var(--nt-rule); }
.nt-menu a { display: block; padding: 13px 18px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--nt-ink); }
.nt-menu a:hover, .nt-menu .current-menu-item > a, .nt-menu .current-cat > a { color: var(--nt-accent); }
.nt-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; right: 0; min-width: 220px;
	background: var(--nt-paper); border: 1px solid var(--nt-ink); border-top: 3px solid var(--nt-accent);
	opacity: 0; visibility: hidden; transition: .15s ease; z-index: 10;
}
.nt-menu li:hover > .sub-menu, .nt-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.nt-menu .sub-menu a { font-weight: 400; padding: 8px 16px; }

.nt-menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 0; padding: 12px 0; font: 600 15px var(--nt-sans); color: var(--nt-ink); cursor: pointer; }
.nt-burger, .nt-burger::before, .nt-burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nt-burger::before, .nt-burger::after { content: ""; position: absolute; right: 0; }
.nt-burger::before { top: -6px; }
.nt-burger::after { top: 6px; }

/* ==========================================================================
   Search form & buttons
   ========================================================================== */
.nt-search { display: flex; border-bottom: 1px solid var(--nt-ink); }
.nt-search-field { flex: 1; min-width: 0; border: 0; background: transparent; padding: 6px 2px; font: inherit; font-size: 14.5px; color: var(--nt-text); }
.nt-search-field:focus { outline: none; }
.nt-search-submit, .nt-btn, .form-submit .submit {
	border: 0; background: var(--nt-ink); color: #fff; font: 600 13.5px var(--nt-sans);
	padding: 6px 14px; cursor: pointer; text-decoration: none; display: inline-block;
}
.nt-btn, .form-submit .submit { padding: 11px 24px; }
.nt-search-submit:hover, .nt-btn:hover, .form-submit .submit:hover { background: var(--nt-accent); color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.nt-main { padding: 34px 0 60px; }
.nt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.nt-no-sidebar .nt-layout { grid-template-columns: minmax(0, 1fr); }
.nt-no-sidebar .nt-single .nt-content { max-width: 780px; margin: 0 auto; }

.nt-page-head { margin: -34px 0 30px; padding: 34px 0 24px; border-bottom: 1px solid var(--nt-ink); }
.nt-page-title { margin: 0; font-size: clamp(30px, 4.4vw, 44px); }
.nt-page-desc { color: var(--nt-muted); margin-top: 8px; max-width: 720px; }
.nt-page-desc p:last-child { margin: 0; }

.nt-section-title {
	font-size: 15px; font-family: var(--nt-sans); font-weight: 700; letter-spacing: .06em;
	margin: 0 0 6px; padding: 10px 0 8px; border-top: 3px solid var(--nt-ink); color: var(--nt-ink);
}

/* ==========================================================================
   Front: lead + headlines
   ========================================================================== */
.nt-front { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 40px; padding-bottom: 34px; margin-bottom: 30px; border-bottom: 1px solid var(--nt-ink); }
.nt-headlines { border-right: 1px solid var(--nt-rule); padding-right: 28px; }
.nt-headlines-title { font: 700 15px var(--nt-sans); letter-spacing: .06em; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 3px solid var(--nt-accent); }
.nt-headlines ol { list-style: none; margin: 0; padding: 0; counter-reset: nt; }
.nt-headlines li { counter-increment: nt; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--nt-rule); }
.nt-headlines li:last-child { border-bottom: 0; }
.nt-headlines li::before { content: counter(nt); grid-row: span 2; font: 700 30px/1 var(--nt-serif); color: var(--nt-accent); }
.nt-headlines a { font: 700 16.5px/1.4 var(--nt-serif); text-decoration: none; color: var(--nt-ink); }
.nt-headlines a:hover { color: var(--nt-accent); }
.nt-headlines time { font-size: 12.5px; color: var(--nt-muted); margin-top: 4px; }

/* ==========================================================================
   Items
   ========================================================================== */
.nt-item-media { display: block; background: var(--nt-shade); overflow: hidden; }
.nt-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92); transition: filter .25s ease; }
.nt-item:hover .nt-item-media img { filter: none; }
.nt-item-ph { width: 100%; height: 100%; min-height: 120px; display: grid; place-items: center; font: 700 52px/1 var(--nt-serif); color: rgba(22, 22, 22, .18); background: repeating-linear-gradient(135deg, var(--nt-shade) 0 12px, #ece6da 12px 13px); }
.nt-item-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nt-item-title { margin: 0; font-size: 22px; line-height: 1.3; }
.nt-item-title a { text-decoration: none; color: var(--nt-ink); }
.nt-item-title a:hover { color: var(--nt-accent); }
.nt-item-excerpt { margin: 0; color: #4a4a4a; font-size: 15.5px; line-height: 1.7; }

/* lead */
.nt-item--lead { display: flex; flex-direction: column; gap: 18px; }
.nt-item--lead .nt-item-media { aspect-ratio: 11 / 7; }
.nt-item--lead .nt-item-title { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.18; }
.nt-item--lead .nt-item-excerpt { font-size: 18px; }

/* row (list) */
.nt-list { display: flex; flex-direction: column; }
.nt-item--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--nt-rule); }
.nt-item--row .nt-item-media { aspect-ratio: 4 / 3; }
.nt-item--row:first-child { padding-top: 14px; }

/* compact (related) */
.nt-grid { display: grid; gap: 22px; }
.nt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-item--compact { display: flex; flex-direction: column; gap: 10px; }
.nt-item--compact .nt-item-media { aspect-ratio: 4 / 3; }
.nt-item--compact .nt-item-title { font-size: 17px; }

.nt-cat { align-self: flex-start; font-size: 12.5px; font-weight: 700; letter-spacing: .05em; color: var(--nt-accent); text-decoration: none; }
.nt-cat:hover { text-decoration: underline; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--nt-muted); }
.nt-meta a { color: var(--nt-muted); text-decoration: none; }
.nt-meta a:hover { color: var(--nt-accent); }
.nt-sep { opacity: .6; }

/* Pagination */
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--nt-ink); text-decoration: none; font-weight: 600; color: var(--nt-ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--nt-ink); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; }

.nt-empty { border-top: 3px solid var(--nt-ink); padding-top: 18px; }
.nt-empty h2 { margin-top: 0; }

/* ==========================================================================
   Single
   ========================================================================== */
.nt-single-head { margin: -34px 0 28px; padding: 30px 0 24px; text-align: center; border-bottom: 1px solid var(--nt-rule); }
.nt-single-head .nt-cat { align-self: center; }
.nt-single-title { font-size: clamp(32px, 5vw, 52px); margin: 10px 0 14px; line-height: 1.15; }
.nt-standfirst { font: 400 21px/1.6 var(--nt-serif); color: #3d3d3d; margin: 0 auto 16px; max-width: 700px; }
.nt-single-head .nt-meta { justify-content: center; }
.nt-crumbs { font-size: 13px; color: var(--nt-muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px; }
.nt-crumbs a { color: var(--nt-muted); text-decoration: none; }
.nt-crumbs a:hover { color: var(--nt-accent); }

.nt-single-media { margin: 0 auto 32px; }
.nt-single-media img { width: 100%; display: block; }

.entry-content { font-size: 18.5px; line-height: 1.85; }
.nt-single:not(.nt-page) .entry-content > p:first-of-type::first-letter {
	float: right; font: 700 4.1em/.85 var(--nt-serif); color: var(--nt-accent); margin: .08em 0 0 .12em;
}
.entry-content h2 { font-size: 28px; padding-top: 10px; border-top: 1px solid var(--nt-rule); }
.entry-content h3 { font-size: 22px; }
.entry-content a { color: var(--nt-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.8em 0; padding: 6px 26px 6px 0; border-right: 3px solid var(--nt-accent); font: 400 22px/1.55 var(--nt-serif); color: var(--nt-ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--nt-rule); padding: 10px 8px; text-align: right; }
.entry-content th { border-bottom: 2px solid var(--nt-ink); color: var(--nt-ink); }
.entry-content pre { background: var(--nt-shade); padding: 16px; overflow: auto; direction: ltr; text-align: left; font-size: 14px; }
.entry-content hr { border: 0; border-top: 4px double var(--nt-rule); margin: 2em 0; }

.nt-page-links { margin: 24px 0; display: flex; gap: 8px; align-items: center; }
.nt-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; padding-top: 16px; border-top: 1px solid var(--nt-rule); }
.nt-tags a { font-size: 13px; text-decoration: none; padding: 4px 10px; border: 1px solid var(--nt-ink); color: var(--nt-ink); }
.nt-tags a:hover { background: var(--nt-ink); color: #fff; }

.post-navigation { margin: 30px 0; border-top: 3px solid var(--nt-ink); border-bottom: 1px solid var(--nt-rule); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; text-decoration: none; }
.post-navigation .nav-next { text-align: left; border-right: 1px solid var(--nt-rule); padding-right: 18px; }
.post-navigation .nav-previous { padding-left: 18px; }
.nt-nav-label { font-size: 12.5px; color: var(--nt-accent); font-weight: 700; letter-spacing: .04em; }
.nt-nav-title { font: 700 17px/1.4 var(--nt-serif); color: var(--nt-ink); }

.nt-related { margin: 40px 0; }
.nt-related .nt-section-title { margin-bottom: 18px; }

/* ==========================================================================
   Sidebar & widgets
   ========================================================================== */
.nt-sidebar { position: sticky; top: 70px; display: flex; flex-direction: column; gap: 30px; }
.widget { margin: 0; }
.widget-title, .widget .wp-block-heading { font: 700 15px var(--nt-sans); letter-spacing: .06em; margin: 0 0 6px; padding: 10px 0 8px; border-top: 3px solid var(--nt-ink); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--nt-rule); 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(--nt-ink); background: var(--nt-paper); font: inherit; }
.widget .wp-block-search__inside-wrapper { border-bottom: 1px solid var(--nt-ink); }
.widget .wp-block-search__input { border: 0; background: transparent; padding: 6px 2px; }
.widget .wp-block-search__button { border: 0; background: var(--nt-ink); color: #fff; margin: 0; padding: 6px 14px; }

/* ==========================================================================
   Comments
   ========================================================================== */
.nt-comments { margin-top: 40px; }
.nt-comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.nt-comment-list .children { list-style: none; padding-right: 28px; margin: 0; }
.nt-comment-list .comment-body { padding: 16px 0; border-bottom: 1px solid var(--nt-rule); }
.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(--nt-muted); text-decoration: none; }
.comment-respond { border-top: 3px solid var(--nt-ink); padding-top: 10px; }
.comment-reply-title { margin-top: 0; font-size: 22px; }
.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(--nt-rule); padding: 10px 12px; font: inherit; background: #fff;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.nt-note { color: var(--nt-muted); }

/* ==========================================================================
   404
   ========================================================================== */
.nt-404 { text-align: center; padding-top: 20px; }
.nt-404-code { font: 700 120px/1 var(--nt-serif); color: var(--nt-accent); margin: 0 0 10px; }
.nt-404 .nt-search { max-width: 420px; margin: 24px auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.nt-footer { border-top: 4px double var(--nt-ink); margin-top: 20px; padding-top: 30px; font-size: 15px; }
.nt-footer-mast { text-align: center; padding-bottom: 24px; border-bottom: 1px solid var(--nt-rule); }
.nt-footer-title { font: 700 32px/1.1 var(--nt-serif); color: var(--nt-ink); text-decoration: none; }
.nt-footer-mast p { color: var(--nt-muted); margin: 8px 0 0; }
.nt-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--nt-rule); }
.nt-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 26px; color: var(--nt-muted); font-size: 14px; }
.nt-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.nt-footer-menu a { text-decoration: none; color: var(--nt-ink); }
.nt-copy { margin: 0; }

/* ==========================================================================
   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: 13.5px; color: var(--nt-muted); margin-top: 6px; border-bottom: 1px solid var(--nt-rule); padding-bottom: 6px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sticky .nt-item-title::before { content: "● "; color: var(--nt-accent); }
.bypostauthor > .comment-body { border-right: 3px solid var(--nt-accent); padding-right: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
	.nt-layout { grid-template-columns: minmax(0, 1fr); }
	.nt-sidebar { position: static; }
	.nt-front { grid-template-columns: minmax(0, 1fr); }
	.nt-headlines { border-right: 0; padding-right: 0; }
	.alignwide { margin-right: 0; margin-left: 0; max-width: 100%; }
}

@media (max-width: 760px) {
	body { font-size: 16px; }
	.nt-mast-top { flex-wrap: wrap; }
	.nt-mast-search { width: 100%; }
	.nt-nav-inner { justify-content: flex-start; flex-wrap: wrap; }
	.nt-menu-toggle { display: inline-flex; }
	.nt-menu { display: none; flex-direction: column; flex-basis: 100%; padding-bottom: 8px; }
	.nt-nav.is-open .nt-menu { display: flex; }
	.nt-menu > li + li::before { display: none; }
	.nt-menu a { padding: 10px 0; border-bottom: 1px solid var(--nt-rule); }
	.nt-menu .sub-menu { position: static; opacity: 1; visibility: visible; border: 0; padding: 0 16px 0 0; }
	.nt-item--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.nt-item--row .nt-item-title { font-size: 18px; }
	.nt-item--row .nt-item-excerpt { display: none; }
	.nt-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.entry-content { font-size: 17px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: right; border-right: 0; padding-right: 0; border-top: 1px solid var(--nt-rule); }
	.nt-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 {
	.nt-nav, .nt-mast-top, .nt-footer, .nt-sidebar, .nt-related, .nt-comments, .post-navigation, .nt-progress { display: none !important; }
	.nt-layout { display: block; }
}
