/*
Theme Name: Azul Deco
Theme URI: https://wordpress.org/themes/
Author: Azul Deco
Description: תבנית יוקרתית בסגנון ארט דקו לאתרי שיש ואבן טבעית, בהשראת שיש כחול (אזול מקאובס): כחול חצות, כחול קרח ונחושת ורודה. תפריט צד קבוע, מסגרות ומניפות דקו, וכרטיסים עם טקסט על גבי התמונה. בעברית ומימין לשמאל. בנויה על מבנה התבניות הסטנדרטי של וורדפרס, כך שהפוסטים, העמודים, התפריטים והווידג׳טים הקיימים ממשיכים לעבוד.
Version: 1.1.0
Requires at least: 5.9
Tested up to: 6.7
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: azul-deco
Tags: blog, left-sidebar, three-columns, custom-logo, custom-menu, featured-images, rtl-language-support, translation-ready, threaded-comments
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--az-navy: #0e1a2b;
	--az-navy-2: #16263d;
	--az-navy-3: #22385a;
	--az-ice: #eef2f6;
	--az-mist: #dfe6ee;
	--az-paper: #ffffff;
	--az-line: #d3dce6;
	--az-steel: #66768c;
	--az-ink: #1b2638;
	--az-ink-soft: #4b5a70;
	--az-silver: #c5cfda;
	--az-copper: #c98b6b;
	--az-copper-2: #a8664a;
	--az-display: "Suez One", "Poiret One", Georgia, serif;
	--az-thin: "Poiret One", "Suez One", sans-serif;
	--az-sans: "Noto Sans Hebrew", "Helvetica Neue", Arial, sans-serif;
	--az-panel: 300px;
	--az-wrap: 1180px;
	--az-ease: cubic-bezier(.2, .7, .2, 1);

	/* Azul Macaubas: blue stone with quartz veins */
	--az-veins: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.006 0.0025' numOctaves='6' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.86 0 0 0 0 0.95 -8 0 0 0 1.15'/%3E%3C/filter%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.008' numOctaves='4' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.42 0 0 0 0 0.68 0 0 0 1.6 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23v)' opacity='.75'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--az-ice);
	color: var(--az-ink);
	font-family: var(--az-sans);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--az-display);
	font-weight: 400;
	line-height: 1.25;
	color: var(--az-navy);
	margin: 1.6em 0 .55em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.35em; }
strong, b { font-weight: 600; }

a { color: var(--az-copper-2); text-decoration: none; transition: color .3s var(--az-ease); }
a:hover, a:focus { color: var(--az-navy); }
.entry-content a { border-bottom: 1px solid var(--az-copper); }
.entry-content a:hover { border-bottom-color: var(--az-navy); }

img, video, iframe { max-width: 100%; height: auto; }
::selection { background: var(--az-navy); color: #fff; }
:focus-visible { outline: 2px solid var(--az-copper); outline-offset: 3px; }

hr { border: 0; height: 7px; margin: 3em auto; max-width: 260px; border-top: 1px solid var(--az-copper); border-bottom: 1px solid var(--az-copper); }

blockquote {
	margin: 2.4em 0;
	padding: 1.8em 2.2em;
	background: var(--az-navy);
	color: #e8eef5;
	font-family: var(--az-display);
	font-size: 1.35rem;
	line-height: 1.6;
	border: 1px solid var(--az-navy);
	outline: 1px solid var(--az-copper);
	outline-offset: -8px;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .8em; font-family: var(--az-sans); font-size: .9rem; font-style: normal; color: var(--az-copper); }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; background: var(--az-paper); }
th, td { padding: .75em 1em; border-bottom: 1px solid var(--az-line); text-align: start; }
th { font-weight: 600; background: var(--az-navy); color: #fff; }

pre, code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--az-mist); }
pre { padding: 1.2em; overflow-x: auto; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none; display: block; height: auto; width: auto;
	inset-inline-start: 8px; top: 8px; padding: 12px 20px; z-index: 100000;
	background: var(--az-copper); color: #fff;
}

.container { width: 100%; max-width: var(--az-wrap); margin-inline: auto; padding-inline: 40px; }
.container-narrow { max-width: 820px; }

.azul-marble {
	background-color: var(--az-navy);
	background-image: var(--az-veins), linear-gradient(160deg, #1a2f4d 0%, #0b1524 100%);
	background-size: 900px 900px, cover;
}

.deco-fan { display: block; color: var(--az-copper); }

.kicker {
	display: inline-block;
	font-family: var(--az-sans); font-size: .82rem; font-weight: 600; letter-spacing: .12em;
	color: var(--az-copper-2);
}

/* ==========================================================================
   Buttons & forms
   ========================================================================== */
.btn, button, input[type="submit"], .wp-block-button__link, .search-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	font-family: var(--az-sans); font-size: .95rem; font-weight: 500; letter-spacing: .03em;
	padding: .95em 2.2em; border-radius: 0; cursor: pointer;
	border: 1px solid var(--az-navy); background: var(--az-navy); color: #fff;
	transition: background .35s var(--az-ease), color .35s, border-color .35s, box-shadow .35s;
}
.btn:hover, button:hover, input[type="submit"]:hover, .wp-block-button__link:hover, .search-submit:hover {
	background: var(--az-copper); border-color: var(--az-copper); color: #fff;
}
.btn-navy { box-shadow: 6px 6px 0 -1px var(--az-ice), 6px 6px 0 0 var(--az-copper); }
[dir="rtl"] .btn-navy { box-shadow: -6px 6px 0 -1px var(--az-ice), -6px 6px 0 0 var(--az-copper); }
.btn-navy:hover { box-shadow: none; }
.btn-copper { background: var(--az-copper); border-color: var(--az-copper); }
.btn-copper:hover { background: #fff; border-color: #fff; color: var(--az-navy); }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="tel"], input[type="number"], textarea, select {
	width: 100%; font: inherit; font-size: 1rem; padding: .85em 1.1em;
	background: var(--az-paper); color: var(--az-ink);
	border: 1px solid var(--az-line); border-radius: 0; transition: border-color .3s;
}
input:focus, textarea:focus, select:focus { border-color: var(--az-copper); outline: none; }

.search-form { display: flex; max-width: 560px; }
.search-form .search-field { flex: 1; }
.search-form .search-submit { padding-inline: 1.4em; }

/* ==========================================================================
   Side panel (header)
   ========================================================================== */
.side-panel {
	position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 60;
	width: var(--az-panel);
	display: flex; flex-direction: column;
	padding: 44px 34px 30px;
	color: #d8e1ec;
	overflow-y: auto;
	border-inline-end: 1px solid rgba(201, 139, 107, .45);
}
.side-panel::after {
	content: ""; position: absolute; top: 14px; bottom: 14px; inset-inline-end: 14px; width: 1px;
	background: linear-gradient(180deg, transparent, rgba(201, 139, 107, .5), transparent);
	pointer-events: none;
}
.admin-bar .side-panel { top: 32px; }

.main-wrap { margin-inline-start: var(--az-panel); min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1; }

.panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.site-branding { text-align: center; width: 100%; }
.site-title { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--az-display); font-size: 1.8rem; line-height: 1.15; color: #fff; }
.site-title .deco-fan { width: 96px; height: auto; }
.site-title:hover { color: var(--az-copper); }
.site-description { margin: .9em 0 0; font-size: .85rem; color: #9fb0c5; line-height: 1.6; }
.custom-logo { max-height: 110px; width: auto; display: block; margin-inline: auto; }

.main-navigation { margin: 40px 0 30px; border-top: 1px solid rgba(255, 255, 255, .1); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.main-navigation li > a { flex: 1; display: flex; align-items: center; gap: .7em; padding: .85em .2em; color: #e3eaf2; font-size: 1.02rem; }
.main-navigation .menu > li > a::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--az-copper); transform: rotate(45deg); flex-shrink: 0; transition: background .3s; }
.main-navigation a:hover { color: var(--az-copper); }
.main-navigation .menu > li > a:hover::before,
.main-navigation .current-menu-item > a::before,
.main-navigation .current_page_item > a::before,
.main-navigation .current-menu-ancestor > a::before { background: var(--az-copper); }
.main-navigation .current-menu-item > a, .main-navigation .current_page_item > a { color: #fff; font-weight: 500; }

.main-navigation .sub-menu, .main-navigation .children { display: none; width: 100%; padding: 0 0 .6em; margin-inline-start: 18px; }
.main-navigation .sub-menu li, .main-navigation .children li { border-bottom: 0; }
.main-navigation .sub-menu a, .main-navigation .children a { padding: .45em .2em; font-size: .94rem; color: #aebdd0; }
.main-navigation li.submenu-open > .sub-menu, .main-navigation li.submenu-open > .children,
.main-navigation .current-menu-ancestor > .sub-menu, .main-navigation .current-menu-parent > .sub-menu { display: block; }

.submenu-toggle { background: none; border: 0; padding: .4em .6em; color: #aebdd0; transition: transform .3s; }
.submenu-toggle:hover { background: none; color: var(--az-copper); }
.submenu-open > .submenu-toggle { transform: rotate(180deg); }

.panel-extra { margin-top: auto; display: flex; flex-direction: column; gap: 18px; }
.panel-extra .search-form { max-width: none; }
.panel-extra .search-field { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: #fff; }
.panel-extra .search-field::placeholder { color: #8c9db3; }
.panel-extra .search-submit { background: transparent; border-color: rgba(255, 255, 255, .2); padding-inline: 1em; }
.panel-extra .search-submit:hover { background: var(--az-copper); border-color: var(--az-copper); }
.panel-cta { width: 100%; }
.social-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social-menu a { display: inline-block; padding: .3em .9em; border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; color: #d8e1ec; }
.social-menu a:hover { border-color: var(--az-copper); color: var(--az-copper); }
.panel-copy { margin: 0; font-size: .78rem; color: #7f90a6; text-align: center; }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 13px 11px; flex-direction: column; justify-content: center; gap: 6px; background: transparent; border: 1px solid rgba(201, 139, 107, .6); color: #fff; flex-shrink: 0; }
.menu-toggle:hover { background: var(--az-copper); color: #fff; }
.menu-toggle .bar { display: block; height: 1px; width: 100%; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile & tablet: panel becomes a top bar */
@media (max-width: 1100px) {
	.side-panel {
		position: sticky; top: 0; bottom: auto; width: 100%; max-height: 100vh;
		padding: 14px 20px; border-inline-end: 0; border-bottom: 1px solid rgba(201, 139, 107, .45);
	}
	.side-panel::after { display: none; }
	.admin-bar .side-panel { top: 32px; }
	.main-wrap { margin-inline-start: 0; }
	.panel-top { align-items: center; }
	.site-branding { text-align: start; }
	.site-title { flex-direction: row; font-size: 1.45rem; gap: 10px; }
	.site-title .deco-fan { width: 46px; }
	.site-description { display: none; }
	.custom-logo { max-height: 54px; margin-inline: 0; }
	.menu-toggle { display: inline-flex; }
	.main-navigation, .panel-extra { display: none; }
	.main-navigation.is-open { display: block; margin: 16px 0 10px; }
	.main-navigation.is-open + .panel-extra { display: flex; padding-bottom: 16px; }
}
@media (max-width: 782px) { .admin-bar .side-panel { top: 0; position: relative; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(50px, 7vw, 90px) 0 30px; }
.deco-frame {
	position: relative; text-align: center;
	padding: clamp(50px, 7vw, 90px) clamp(24px, 6vw, 80px);
	border: 1px solid var(--az-copper);
	outline: 1px solid var(--az-copper); outline-offset: -12px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(201, 139, 107, .12), transparent 60%),
		var(--az-paper);
}
.corner { position: absolute; width: 34px; height: 34px; border: 1px solid var(--az-copper); background: var(--az-ice); }
.corner.c1 { top: -10px; left: -10px; }
.corner.c2 { top: -10px; right: -10px; }
.corner.c3 { bottom: -10px; left: -10px; }
.corner.c4 { bottom: -10px; right: -10px; }
.corner::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--az-copper); transform: rotate(45deg); }
.hero-ornament .deco-fan { margin: 0 auto 22px; width: 150px; height: auto; }
.hero-title { font-size: clamp(2.5rem, 5.8vw, 4.6rem); margin: .3em 0 .35em; line-height: 1.1; }
.hero-text { max-width: 620px; margin: 0 auto 2.2em; font-size: 1.12rem; color: var(--az-ink-soft); }

/* ==========================================================================
   Feature
   ========================================================================== */
.feature-wrap { padding-top: 60px; }
.feature { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; }
.feature-media { grid-column: 1 / span 8; grid-row: 1; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--az-mist); }
.feature-media img, .feature-media .media-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--az-ease); }
.feature:hover .feature-media img { transform: scale(1.04); }
.feature-panel {
	grid-column: 7 / span 6; grid-row: 1; position: relative; z-index: 2;
	padding: clamp(30px, 4vw, 54px); background: var(--az-navy); color: #dbe4ee;
	outline: 1px solid var(--az-copper); outline-offset: -10px;
}
.feature-title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: .35em 0 .5em; line-height: 1.2; }
.feature-title a { color: #fff; }
.feature-title a:hover { color: var(--az-copper); }
.feature-excerpt { color: #b8c6d6; }
.feature-panel .kicker { color: var(--az-copper); }
.feature-panel .meta-line { color: #8fa1b8; }
.feature-panel .cat-badge { color: var(--az-copper); }
@media (max-width: 900px) {
	.feature-media, .feature-panel { grid-column: 1 / -1; }
	.feature-panel { grid-row: 2; margin: -60px 18px 0; }
}

.media-placeholder { display: block; width: 100%; height: 100%; }

/* ==========================================================================
   Banners & headings
   ========================================================================== */
.site-main { padding-bottom: 100px; }
.page-banner { padding: clamp(56px, 8vw, 90px) 0 clamp(36px, 5vw, 56px); text-align: center; }
.page-banner .deco-fan { margin: 0 auto 18px; }
.page-banner .page-title { margin: .25em 0 0; }
.page-banner .page-title em { font-style: normal; color: var(--az-copper-2); }
.archive-description { max-width: 640px; margin: 1em auto 0; color: var(--az-ink-soft); }
.container-narrow { padding-top: 20px; }

.section-heading { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 80px 0 40px; font-size: 2rem; text-align: center; }
.section-heading::before, .section-heading::after { content: ""; flex: 1; max-width: 200px; height: 7px; border-top: 1px solid var(--az-copper); border-bottom: 1px solid var(--az-copper); }
.content-area { padding-top: 30px; }

/* ==========================================================================
   Overlay tiles
   ========================================================================== */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 24px; }
.tile:nth-child(5n + 1) { grid-column: span 2; }
@media (max-width: 1300px) { .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile:nth-child(5n + 1) { grid-column: span 2; } }
@media (max-width: 640px) { .tile-grid { grid-template-columns: minmax(0, 1fr); } .tile:nth-child(5n + 1) { grid-column: auto; } }

.tile-link { position: relative; display: block; height: 100%; min-height: 420px; overflow: hidden; color: #fff; background: var(--az-navy); }
.tile-media, .tile-media img, .tile-media .media-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-media img { transition: transform 1.4s var(--az-ease), filter .6s; }
.tile-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 43, 0) 30%, rgba(14, 26, 43, .92) 100%); }
.tile-frame { position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(201, 139, 107, 0); transition: border-color .5s, inset .5s var(--az-ease); }
.tile-link:hover .tile-frame { border-color: rgba(201, 139, 107, .9); inset: 18px; }
.tile-link:hover .tile-media img { transform: scale(1.06); }
.tile-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 34px 34px 32px; display: flex; flex-direction: column; gap: 8px; }
.tile-cat { align-self: flex-start; font-size: .78rem; font-weight: 600; letter-spacing: .1em; padding: .3em .9em; background: var(--az-copper); color: #fff; }
.tile-title { font-size: 1.5rem; line-height: 1.25; margin: 0; color: #fff; }
.tile:nth-child(5n + 1) .tile-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.tile-meta { font-size: .85rem; color: #b8c6d6; }
.sticky .tile-cat::before { content: "★ "; }

.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: .86rem; color: var(--az-steel); }
.meta-line > * + *::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-inline-end: 16px; border: 1px solid var(--az-copper); transform: rotate(45deg) translateY(-2px); }
.meta-center { justify-content: center; }
.cat-badge { color: var(--az-copper-2); font-weight: 600; }

/* Pagination */
.pagination { margin-top: 64px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 48px; height: 48px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--az-line); background: var(--az-paper); color: var(--az-navy); font-family: var(--az-display); font-size: 1.1rem;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--az-navy); border-color: var(--az-navy); color: #fff; outline: 1px solid var(--az-copper); outline-offset: -5px; }
.pagination .dots { border: 0; background: none; }

/* ==========================================================================
   Single
   ========================================================================== */
.article-head { text-align: center; padding: clamp(56px, 8vw, 96px) 0 10px; }
.article-head .deco-fan { margin: 0 auto 20px; }
.article-title { max-width: 900px; margin: .45em auto .35em; font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.15; }
.article-byline { color: var(--az-steel); }
.article-byline strong { color: var(--az-navy); font-weight: 500; }
.article-image { margin: 40px auto 0; }
.deco-border { display: block; padding: 12px; border: 1px solid var(--az-copper); background: var(--az-paper); }
.deco-border img { display: block; width: 100%; }
.article-image figcaption { text-align: center; font-size: .86rem; color: var(--az-steel); margin-top: 1em; }

.reading { max-width: 760px; margin-inline: auto; padding-top: 60px; }
.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.single .entry-content > p:first-of-type { font-size: 1.25rem; color: var(--az-navy); }
.entry-content h2 { text-align: center; }
.entry-content h2::after { content: ""; display: block; width: 60px; height: 5px; margin: .5em auto 0; border-top: 1px solid var(--az-copper); border-bottom: 1px solid var(--az-copper); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--az-copper); }
.entry-content figcaption, .wp-caption-text { font-size: .86rem; color: var(--az-steel); text-align: center; margin-top: .6em; }
.entry-content .alignwide { margin-inline: calc(-1 * min(6vw, 120px)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
@media (min-width: 1101px) { .entry-content .alignfull { margin-inline: calc(50% - (50vw - var(--az-panel) / 2)); width: calc(100vw - var(--az-panel)); } }
.alignleft { float: left; margin: .4em 1.8em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.8em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.page-thumb { margin: 0 0 44px; }

.page-links { margin: 2em 0; font-weight: 500; }
.page-links a, .page-links > span { margin-inline-start: .5em; }

.entry-footer { margin-top: 50px; }
.end-mark { text-align: center; color: var(--az-copper); letter-spacing: .6em; font-size: .7rem; margin-bottom: 40px; }
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.tag-list a { padding: .35em 1.1em; border: 1px solid var(--az-line); background: var(--az-paper); color: var(--az-ink-soft); font-size: .9rem; }
.tag-list a:hover { background: var(--az-navy); border-color: var(--az-navy); color: #fff; }

.author-card { display: flex; gap: 22px; align-items: center; padding: 30px; background: var(--az-paper); border: 1px solid var(--az-line); border-inline-start: 3px solid var(--az-copper); }
.author-card img { border-radius: 50%; flex-shrink: 0; }
.author-name { font-family: var(--az-display); font-size: 1.4rem; color: var(--az-navy); margin: .25em 0 .2em; }
.author-bio { margin: 0; color: var(--az-ink-soft); font-size: .97rem; }

.post-navigation { margin-top: 60px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation .nav-next { text-align: end; }
.post-navigation .nav-previous:only-child, .post-navigation .nav-next:only-child { grid-column: 1 / -1; }
.post-navigation a { display: block; height: 100%; padding: 26px 28px; background: var(--az-navy); color: #dbe4ee; transition: outline-offset .35s, background .35s; outline: 1px solid transparent; outline-offset: -4px; }
.post-navigation a:hover { background: var(--az-navy-3); outline-color: var(--az-copper); outline-offset: -9px; }
.nav-label { display: block; font-size: .85rem; color: var(--az-copper); margin-bottom: .35em; }
.nav-title { display: block; font-family: var(--az-display); font-size: 1.25rem; line-height: 1.35; color: #fff; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { margin-top: 70px; }
.comments-title, .comment-reply-title { font-size: 1.8rem; text-align: center; }
.comment-list, .comment-list .children { list-style: none; padding: 0; margin: 0; }
.comment-list .children { padding-inline-start: 40px; }
.comment-body { padding: 24px 26px; margin-bottom: 16px; background: var(--az-paper); border: 1px solid var(--az-line); }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--az-navy); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: .82rem; margin: .2em 0 .8em; }
.comment-metadata a { color: var(--az-steel); }
.reply a { font-size: .88rem; font-weight: 600; }
.comment-respond { margin-top: 36px; padding: 36px; background: var(--az-paper); border: 1px solid var(--az-copper); outline: 1px solid var(--az-copper); outline-offset: -9px; }
.comment-form p { margin-bottom: 1.1em; }
.comment-form label { display: block; font-size: .92rem; margin-bottom: .35em; }
.comment-form-cookies-consent { display: flex; gap: .6em; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { color: var(--az-ink-soft); font-size: .92rem; }

/* ==========================================================================
   Widgets row (sidebar appears below content in this layout)
   ========================================================================== */
.widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 90px; padding-top: 60px; border-top: 1px solid var(--az-line); }
.widget-area .widget { padding: 30px; background: var(--az-paper); border: 1px solid var(--az-line); }
.widget-title, .widget .wp-block-heading { font-size: 1.3rem; margin: 0 0 .9em; padding-bottom: .6em; border-bottom: 1px solid var(--az-line); position: relative; }
.widget-title::after, .widget .wp-block-heading::after { content: ""; position: absolute; bottom: -4px; inset-inline-start: 0; width: 7px; height: 7px; background: var(--az-copper); transform: rotate(45deg); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .55em 0; border-bottom: 1px solid var(--az-ice); color: var(--az-steel); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--az-ink); }
.widget li a:hover { color: var(--az-copper-2); }
.widget .search-form { max-width: none; }
.widget .wp-block-search__inside-wrapper { gap: 0; }
.widget .wp-block-latest-posts__post-date, .widget .wp-block-latest-comments__comment-date { color: var(--az-steel); font-size: .85rem; }
.tagcloud a, .wp-block-tag-cloud a { display: inline-block; margin: 0 4px 6px 0; padding: .25em .9em; border: 1px solid var(--az-line); color: var(--az-ink-soft); font-size: .88rem !important; }
.tagcloud a:hover, .wp-block-tag-cloud a:hover { background: var(--az-navy); color: #fff; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--az-navy); color: #b8c6d6; padding: 70px 0 0; }
.footer-ornament .deco-fan { margin: 0 auto 50px; width: 160px; height: auto; }
.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 44px; padding-bottom: 60px; }
.site-footer .widget-title, .site-footer .widget .wp-block-heading { color: #fff; border-color: rgba(255, 255, 255, .12); }
.site-footer .widget li { border-color: rgba(255, 255, 255, .07); }
.site-footer a, .site-footer .widget li a { color: #e3eaf2; }
.site-footer a:hover, .site-footer .widget li a:hover { color: var(--az-copper); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.footer-about { text-align: center; max-width: 620px; margin: 0 auto 40px; color: #9fb0c5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .86rem; color: #7f90a6; }
.footer-bottom p { margin: 0; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }

.back-to-top {
	position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 40;
	width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	background: var(--az-navy); color: var(--az-copper); border: 1px solid var(--az-copper);
	transform: rotate(45deg) scale(.8); opacity: 0; visibility: hidden; transition: all .35s var(--az-ease);
}
.back-to-top svg { transform: rotate(-45deg); }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: rotate(45deg) scale(1); }
.back-to-top:hover { background: var(--az-copper); color: #fff; }

/* ==========================================================================
   Misc
   ========================================================================== */
.no-results { text-align: center; padding: 50px 0; }
.no-results .search-form { margin: 26px auto 0; }
.error-404 { padding: clamp(60px, 9vw, 120px) 0; }
.error-404 .search-form { margin: 30px auto; }
.big-number { display: block; font-family: var(--az-display); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--az-navy); }
.error-404 .page-title { margin-top: .2em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.gallery-item { margin: 0; }
.bypostauthor { display: block; }

@media (max-width: 640px) {
	body { font-size: 16.5px; }
	.container { padding-inline: 16px; }
	.tile-link { min-height: 360px; }
	.tile-body { padding: 26px 24px; }
	.corner { width: 24px; height: 24px; }
	.corner::after { inset: 5px; }
	.comment-respond { padding: 26px 18px; }
	.post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
	.alignleft, .alignright { float: none; margin: 1em auto; }
	.author-card { flex-direction: column; text-align: center; }
	.btn-navy, [dir="rtl"] .btn-navy { box-shadow: none; }
}

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