/*
Theme Name: Izdavaoci Bokeška
Theme URI: https://izdavaoci.me/
Author: Izdavaoci.me / NU AIPS
Description: Moderna minimalistička tema za portal Izdavaoci.me – kartice, svijetla i tamna varijanta, sve sekcije stare početne i pun rad s IZD Multilingual (ME/EN/DE/RU/TR): naslovi sekcija, meni i linkovi prethodni/sljedeći prate jezik stranice.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
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: izd-bokeska
*/

/* ---------- Tokens ---------- */
:root {
	--bg: #faf7f2;
	--card: #ffffff;
	--chip: #f3eee6;
	--text: #1c1917;
	--muted: #6f6964;
	--line: #e9e2d7;
	--accent: #d9481b;
	--accent-soft: #fde8de;
	--on-accent: #ffffff;
	--hero-overlay: linear-gradient(180deg, rgba(20, 10, 8, 0) 25%, rgba(20, 10, 8, .82) 100%);
	--hero-bg: linear-gradient(135deg, #e8572a, #8a3b8f);
	--airbnb: #d93e57;
	--booking: #1f4db8;
	--footer: #1c1917;
	--footer-text: #f5f1eb;
	--footer-accent: #ff9d78;
	--ph1: #f6dccf;
	--ph2: #dce7f0;
	--ph3: #eeddeb;
	--ph4: #ddebdf;
	--shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .06);
	--radius-l: 24px;
	--radius: 20px;
	--radius-s: 14px;
	--f-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #121212;
	--card: #1c1c1e;
	--chip: #262628;
	--text: #f2efea;
	--muted: #a7a39d;
	--line: #2e2e31;
	--accent: #ff8a5c;
	--accent-soft: #3a2219;
	--on-accent: #1a0f0a;
	--hero-bg: linear-gradient(135deg, #7a2e14, #3b1a3e);
	--airbnb: #a8324a;
	--booking: #1e3f8a;
	--footer: #0a0a0a;
	--footer-text: #e8e4de;
	--footer-accent: #ff8a5c;
	--ph1: #2c2622;
	--ph2: #22282e;
	--ph3: #2a2230;
	--ph4: #1f2b26;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background-color .2s ease, color .2s ease;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); line-height: 1.2; letter-spacing: -0.015em; margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; left: 16px; top: 16px;
	padding: 12px 16px; background: var(--card); color: var(--text); border-radius: 10px; box-shadow: var(--shadow);
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.meta { font-size: 13px; color: var(--muted); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; cursor: pointer;
	font-weight: 600; font-size: 15px;
}
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { color: var(--on-accent); filter: brightness(1.06); }

.chip {
	display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 700; line-height: 1;
	color: var(--accent); background: var(--accent-soft); padding: 6px 10px; border-radius: 999px;
}
.chip-glass { color: #fff; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.pill-accent {
	flex: none; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft);
	padding: 6px 10px; border-radius: 999px;
}

/* Thumbnails / placeholders */
.thumb, .hero-media { position: relative; overflow: hidden; background: var(--ph1); }
.thumb.ph1, .hero-media.ph1 { background: var(--ph1); }
.thumb.ph2, .hero-media.ph2 { background: var(--ph2); }
.thumb.ph3, .hero-media.ph3 { background: var(--ph3); }
.thumb.ph4, .hero-media.ph4 { background: var(--ph4); }
.thumb-img { width: 100%; height: 100%; object-fit: cover; }
.thumb.wide { aspect-ratio: 16 / 9; }
.thumb.square { aspect-ratio: 1; }

.stretched { display: block; color: inherit; height: 100%; }
.stretched:hover { color: inherit; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) {
	.card-hover, .card-hover:hover { transition: none; transform: none; }
}

/* ---------- Header ---------- */
.site-header { padding-top: 16px; }
.topbar {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 10px 12px 10px 20px; display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
	width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
	display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 700; font-size: 18px;
}
.brand-name { font-family: var(--f-head); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.brand-logo { max-height: 44px; width: auto; }

.main-nav { flex: 1; min-width: 0; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; white-space: nowrap;
}
.main-nav a:hover { background: var(--chip); color: var(--text); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 6px; position: absolute; left: 0; top: 100%; z-index: 50; min-width: 220px;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.bar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-pills ul { list-style: none; margin: 0; padding: 3px; display: flex; background: var(--chip); border-radius: 12px; }
.lang-pills a {
	display: block; padding: 7px 9px; border-radius: 9px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2;
}
.lang-pills a:hover { color: var(--text); }
.lang-pills a.is-current { background: var(--card); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

.icon-btn {
	width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--chip);
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-dark, .icon-open, .icon-close { display: inline-flex; }
[data-theme="dark"] .icon-dark { display: none; }
.icon-light { display: none; }
[data-theme="dark"] .icon-light { display: inline-flex; }
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline-flex; }

.search-panel { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.search-form { display: flex; gap: 10px; }
.search-field {
	flex: 1; min-width: 0; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--bg); color: var(--text); font: inherit;
}
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.subbar {
	display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between;
	padding: 14px 4px; font-size: 13px; color: var(--muted);
}
.trending { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 420px; }
.trending-list { list-style: none; margin: 0; padding: 0; position: relative; flex: 1; min-width: 0; height: 22px; overflow: hidden; }
.trending-list li { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trending-list li.is-active { opacity: 1; transform: none; }
.trending-list a { color: var(--text); font-weight: 500; font-size: 14px; }
.trending-list a:hover { color: var(--accent); }
.subbar-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.fb-link { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Front: hero ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px; padding-top: 8px; padding-bottom: 40px; }
.hero { border-radius: var(--radius-l); overflow: hidden; background: var(--hero-bg); min-height: 460px; position: relative; color: #fff; }
.hero .stretched { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; }
.hero .hero-media { position: absolute; inset: 0; background: transparent; }
.hero .hero-media:not(:empty)::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .hero-media[aria-hidden="true"] { display: none; }
.hero-body { position: relative; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.hero-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.hero-excerpt { margin: 0; max-width: 600px; font-size: 15px; opacity: .88; }
.hero .stretched:hover .hero-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.hero-side { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card .stretched { display: flex; align-items: center; gap: 16px; padding: 14px; }
.feature-card .thumb { width: 88px; flex: none; border-radius: var(--radius-s); }
.feature-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feature-title { font-size: 17px; line-height: 1.3; font-weight: 600; }
.feature-card .stretched:hover .feature-title { color: var(--accent); }

/* ---------- Layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 32px; padding-bottom: 48px; align-items: flex-start; }
.main-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.sidebar { flex: 1 1 300px; max-width: 360px; display: flex; flex-direction: column; gap: 20px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.section-title { font-size: 26px; font-weight: 700; }
.section-link { font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-link:hover { text-decoration: underline; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .stretched { display: flex; flex-direction: column; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 18px; line-height: 1.3; font-weight: 600; }
.card .stretched:hover .card-title { color: var(--accent); }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; }
.law-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.law-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-s); background: var(--chip); }
.law-item:hover { color: inherit; outline: 1px solid var(--accent); }
.law-icon {
	width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
	display: flex; align-items: center; justify-content: center;
}
.law-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.law-title { font-size: 15px; font-weight: 600; line-height: 1.35; }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duo-card { border-radius: var(--radius-l); padding: 28px; color: #fff; display: flex; flex-direction: column; gap: 12px; }
.duo-card a { color: #fff; }
.duo-card a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.duo-airbnb { background: var(--airbnb); }
.duo-booking { background: var(--booking); }
.duo-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.duo-title { font-family: var(--f-head); font-size: 24px; line-height: 1.2; font-weight: 700; }
.duo-text { margin: 0; font-size: 14px; opacity: .9; }
.duo-more { margin-top: auto; font-size: 14px; font-weight: 600; }
.duo-list { list-style: none; margin: 0; padding: 0; }
.duo-list li { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.duo-list li:last-child { border-bottom: 0; }
.duo-list a { display: block; padding: 11px 0; font-size: 15px; font-weight: 500; line-height: 1.4; }

/* Sidebar */
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-title { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.popular-item { display: flex; flex-direction: column; gap: 10px; }
.popular-item .thumb { border-radius: var(--radius-s); }
.popular-title { font-weight: 600; font-size: 15px; line-height: 1.4; }
.numbered { list-style: none; counter-reset: n; margin: 0; padding: 0; }
.numbered li { counter-increment: n; display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; line-height: 1.4; }
.numbered li:last-child { border-bottom: 0; padding-bottom: 0; }
.numbered li:first-child { padding-top: 0; }
.numbered li::before { content: counter(n, decimal-leading-zero); color: var(--accent); font-family: var(--f-head); }
.follow-card {
	border-radius: var(--radius); padding: 20px; background: var(--accent); color: var(--on-accent);
	display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center;
}
.follow-card:hover { color: var(--on-accent); filter: brightness(1.05); }
.follow-icon {
	grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .2);
	display: flex; align-items: center; justify-content: center;
}
.follow-title { font-family: var(--f-head); font-size: 17px; font-weight: 700; line-height: 1.25; }
.follow-sub { font-size: 13px; opacity: .9; }
.ad-slot { display: flex; justify-content: center; }
.ad-slot > * { max-width: 100%; }

/* Za izdavaoce */
.block-wide { padding-bottom: 56px; }
.soft-panel { background: var(--accent-soft); border-radius: 28px; padding: 32px; }
.soft-panel .card { border-color: transparent; }

/* ---------- Article ---------- */
.layout-article { padding-top: 8px; }
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 40px; }
.article-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip:hover { color: var(--accent); filter: brightness(.97); }
.article-title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.article-media { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; }
.article-media img { width: 100%; }
.page-wrap { padding-top: 8px; padding-bottom: 56px; max-width: 960px; }

.entry-content { font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; margin-bottom: .6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; margin-bottom: .5em; }
.entry-content h4 { font-size: 18px; margin-top: 1.3em; margin-bottom: .5em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
	margin-left: 0; margin-right: 0; padding: 16px 22px; border-left: 4px solid var(--accent); background: var(--chip);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--radius-s); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption, .wp-element-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--chip); font-weight: 700; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.entry-content code { background: var(--chip); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content iframe { max-width: 100%; }
.alignwide { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignfull { margin-left: -40px; margin-right: -40px; max-width: none; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-button__link { background: var(--accent); color: var(--on-accent) !important; border-radius: 12px; text-decoration: none !important; }

/* Content blocks that older posts may carry from the previous theme */
.entry-content .izd-stat, .entry-content .izd-box { background: var(--chip); border-radius: var(--radius-s); padding: 16px 20px; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav-item { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--radius-s); background: var(--chip); }
.post-nav-item.next { text-align: right; }
.post-nav-title { font-family: var(--f-head); font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text); }
.post-nav-item:hover .post-nav-title { color: var(--accent); }

.page-links { display: flex; gap: 8px; margin-top: 20px; }

/* Comments */
.comments { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit;
}
.comment-form .submit { min-height: 44px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }

/* ---------- Archive ---------- */
.archive-head { display: flex; flex-direction: column; gap: 10px; }
.archive-title { font-size: clamp(28px, 3vw, 38px); font-weight: 700; }
.archive-desc { color: var(--muted); }
.archive-search { max-width: 560px; margin-top: 6px; }
.post-list { display: flex; flex-direction: column; gap: 16px; }
.list-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.list-card .stretched { display: flex; gap: 20px; padding: 14px; align-items: stretch; }
.list-thumb { width: 240px; flex: none; border-radius: var(--radius-s); aspect-ratio: 16 / 10; }
.list-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 4px 6px 4px 0; }
.list-title { font-size: 20px; font-weight: 600; line-height: 1.3; }
.list-card .stretched:hover .list-title { color: var(--accent); }
.list-excerpt { margin: 0; color: var(--muted); font-size: 15px; }
.empty { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
	min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.notfound { text-align: center; padding: 48px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.notfound-code { font-family: var(--f-head); font-size: 96px; font-weight: 700; color: var(--accent); margin: 0; line-height: 1; }
.notfound .archive-search { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); }
.site-footer a:hover { color: var(--footer-accent); }
.footer-grid { padding-top: 48px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer-about { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.7; opacity: .8; }
.footer-about .footer-contact { opacity: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-contact a { color: var(--footer-accent); }
.brand-footer, .brand-footer:hover { color: var(--footer-text); }
.footer-nav { display: flex; flex-direction: column; gap: 14px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; opacity: .85; }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 28px; font-size: 13px; opacity: .65; }

/* Back to top */
.to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 16px; border: 0;
	background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); opacity: 0; transform: translateY(12px);
	transition: opacity .2s ease, transform .2s ease;
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { filter: brightness(1.08); }
.to-top[hidden] { display: none; }
@media (max-width: 720px) { .to-top { right: 16px; bottom: 16px; width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav a { padding: 9px 9px; font-size: 13.5px; }
}

@media (max-width: 1024px) {
	.topbar { flex-wrap: wrap; }
	.nav-toggle { display: inline-flex; }
	.bar-actions { margin-left: auto; }
	.main-nav { order: 3; flex-basis: 100%; display: none; }
	.nav-open .main-nav { display: block; }
	.main-nav .menu { flex-direction: column; align-items: stretch; padding: 8px 0 4px; border-top: 1px solid var(--line); }
	.main-nav a { padding: 12px; font-size: 15px; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
	.sidebar { max-width: none; flex-basis: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.wrap { padding-left: 16px; padding-right: 16px; }
	.topbar { padding: 10px 10px 10px 14px; gap: 10px; }
	.brand-name { font-size: 20px; }
	.bar-actions { gap: 6px; flex-basis: 100%; order: 2; justify-content: space-between; margin-left: 0; }
	.lang-pills a { padding: 7px 8px; }
	.hero, .hero .stretched { min-height: 380px; }
	.hero-body { padding: 24px; }
	.hero-side, .grid-2, .grid-3, .law-grid, .duo, .post-nav { grid-template-columns: 1fr; }
	.sidebar { grid-template-columns: 1fr; }
	.panel, .soft-panel { padding: 20px; border-radius: var(--radius); }
	.section-title { font-size: 22px; }
	.article { padding: 22px; border-radius: var(--radius); }
	.alignwide, .alignfull { margin-left: -22px; margin-right: -22px; }
	.entry-content { font-size: 16.5px; }
	.list-card .stretched { flex-direction: column; }
	.list-thumb { width: 100%; }
	.post-nav-item.next { text-align: left; }
	.subbar-meta { width: 100%; justify-content: space-between; }
}

@media print {
	.site-header, .sidebar, .site-footer, .to-top, .post-nav, .related, .comments { display: none !important; }
	.article { border: 0; padding: 0; }
	body { background: #fff; color: #000; }
}
