/*
Theme Name: Diaspora School
Description: Classic design for ՍՓՅՈՒՌՔԻ ԴՊՐՈՑ (armeniandiasporaschool.com): gold and cream, light / dark / reading modes.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: diaspora-school
*/

/* ===== Colours (design tokens) ===== */
:root {
	--gold: #8d7e58;
	--gold-dark: #6f6344;
	--gold-light: #e4d9be;
	--cream: #fcf9ed;
	--cream-2: #f6f2df;
	--text: #2f2a1f;
	--muted: #6b6455;
	--surface: #fff;
	--on-accent: #fff;
	--heading: #213609;
	--band: #213609;
	--on-band: #fcf9ed;
	--band-accent: #e4d9be;
	--shadow-rgb: 33, 54, 9;
	--radius: 14px;
	--serif: "Noto Serif Armenian", Georgia, serif;
	--sans: "Noto Sans Armenian", system-ui, sans-serif;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--gold: #d6b56c; --gold-dark: #e6cc8e; --gold-light: #2b3750;
	--cream: #0e1522; --cream-2: #18223a; --surface: #152035;
	--text: #e4e8f0; --muted: #9ba7bc; --heading: #f2e7c9;
	--band: #080d17; --on-band: #e4e8f0; --band-accent: #d6b56c;
	--on-accent: #14110c;
	--shadow-rgb: 0, 0, 0;
}
:root[data-theme="reading"] {
	--gold: #8a6a3a; --gold-dark: #6b5230; --gold-light: #dccdaa;
	--cream: #f4ecd8; --cream-2: #ebe0c4; --surface: #f8f1df;
	--text: #3a2e21; --muted: #66563f; --heading: #46321d;
	--band: #4a3925; --on-band: #f4ecd8; --on-accent: #fff;
	--shadow-rgb: 74, 57, 37;
}
/* the editor's colour presets follow the active mode too */
html body {
	--wp--preset--color--gold: var(--gold);
	--wp--preset--color--gold-dark: var(--gold-dark);
	--wp--preset--color--gold-light: var(--gold-light);
	--wp--preset--color--cream: var(--cream);
	--wp--preset--color--cream-2: var(--cream-2);
	--wp--preset--color--surface: var(--surface);
	--wp--preset--color--heading: var(--heading);
	--wp--preset--color--text: var(--text);
	--wp--preset--color--muted: var(--muted);
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-wrap: anywhere; background: var(--cream); color: var(--text); }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * { margin-block: 0; }
/* short pages: keep the footer at the bottom of the window */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > .site-main { flex: 1 0 auto; }
.admin-bar .wp-site-blocks { min-height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container > * { margin-block-start: 0; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--heading); line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

:root[data-theme="dark"] .card img, :root[data-theme="dark"] .issue img, :root[data-theme="dark"] .hero-img img { filter: brightness(.88); }
:root[data-theme="dark"] .wp-block-site-logo img { background: #fcf9ed; border-radius: 50%; padding: 3px; }
:root[data-theme="reading"] body { font-size: 1.1rem; line-height: 1.85; }
:root[data-theme="reading"] *, :root[data-theme="reading"] *::before, :root[data-theme="reading"] *::after { transition: none !important; animation: none !important; }
:root[data-theme="reading"] .card:hover, :root[data-theme="reading"] .issue:hover { transform: none; }
:root[data-theme="reading"] .hero { background: none; }
:root[data-theme="reading"] .hero-img::before { display: none; }
:root[data-theme="reading"] img { filter: sepia(.2); }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); box-shadow: 0 1px 0 var(--gold-light); transition: box-shadow .3s; }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(var(--shadow-rgb), .12); }
.site-header p { margin: 0; }

.topbar { background: var(--band); color: var(--on-band); font-size: .85rem; }
.topbar .container { min-height: 36px; gap: 12px; }
.topbar .tagline { opacity: .85; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .mail { flex-shrink: 0; white-space: nowrap; }
.topbar .mail a { text-decoration: none; opacity: .85; }
.topbar .mail a:hover { opacity: 1; text-decoration: underline; }

.header-main .container { min-height: 84px; gap: 20px; }
.brand { gap: 12px; min-width: 0; }
/* the logo takes the free space, so the menu (or its ≡ button) sits next to the buttons on the right */
.header-main .container > .brand { margin-right: auto !important; }
.brand .wp-block-site-logo { flex-shrink: 0; }
.brand .wp-block-site-logo img { width: 62px; height: auto; }
.brand-text { min-width: 0; }
.brand-text > * { margin: 0; }
.brand-name { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; line-height: 1.1; letter-spacing: .02em; }
.brand-name a { color: var(--gold); text-decoration: none; }
.brand-sub { font-weight: 500; font-size: .75rem; color: var(--muted); margin-top: 3px !important; }

/* Main menu (core Navigation block) */
.main-nav { font-weight: 600; font-size: .97rem; }
.main-nav .wp-block-navigation__container { gap: 2px; }
.main-nav .wp-block-navigation-item__content { padding: 10px 14px; border-radius: 8px; color: var(--text); text-decoration: none; position: relative; }
.main-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.main-nav .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.main-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--gold); }
.main-nav .wp-block-navigation-submenu__toggle { margin-left: -10px; padding-right: 6px; color: var(--text); }
.main-nav .wp-block-navigation__submenu-container {
	padding: 8px !important; min-width: 230px !important; background: var(--surface) !important; color: var(--text) !important;
	border: 1px solid var(--gold-light) !important; border-top: 3px solid var(--gold) !important; border-radius: 0 0 12px 12px;
	box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .14);
}
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: block; padding: 9px 12px; font-weight: 400; font-size: .95rem; }
.main-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--cream-2); color: var(--gold-dark); }

/* burger + mobile panel */
.main-nav .wp-block-navigation__responsive-container-open,
.theme-toggle, .search-toggle {
	width: 46px; height: 46px; border: 1.5px solid var(--gold-light); border-radius: 10px; background: var(--surface); color: var(--heading);
	place-items: center; justify-content: center; align-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.theme-toggle, .search-toggle { display: grid; }
.theme-toggle:hover, .theme-toggle[aria-expanded="true"], .search-toggle:hover, .search-toggle[aria-expanded="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
/* opened burger menu: one left-aligned list, sub-pages indented under their section */
.main-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--cream) !important; color: var(--text) !important; padding: 20px 24px 40px; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 72px !important; align-items: stretch !important; width: 100%; max-width: 560px; margin-inline: auto; }
.main-nav .is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; justify-content: flex-start !important; }
.main-nav .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; text-align: left; }
.main-nav .is-menu-open .wp-block-navigation-item__content { display: block; width: 100%; padding: 14px 4px !important; font-size: 1.1rem; font-weight: 600; text-align: left; border-bottom: 1px solid var(--gold-light); border-radius: 0; }
.main-nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.main-nav .is-menu-open .wp-block-navigation__submenu-container { width: calc(100% - 4px) !important; min-width: 0 !important; border: 0 !important; border-left: 3px solid var(--gold) !important; border-radius: 0; box-shadow: none; background: transparent !important; margin: 0 0 6px 4px; padding: 0 0 0 14px !important; gap: 0 !important; }
.main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 11px 4px !important; font-size: 1rem; font-weight: 400; text-align: left !important; justify-content: flex-start; }
.main-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item:last-child > .wp-block-navigation-item__content { border-bottom: 0; }
.main-nav .is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
.main-nav .is-menu-open .wp-block-navigation__responsive-container-close { top: 20px; right: 20px; width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--gold-light); border-radius: 10px; background: var(--surface); color: var(--heading); }
/* small screens: the ≡ button is the last one, on the far right */
@media (max-width: 960px) {
	.header-main .container { gap: 10px; }
	.header-main .container > .main-nav { order: 3; }
	.header-main .container > .wp-block-html, .header-main .container > .header-tools { order: 2; }
}
/* the burger menu takes over below 960px (core switches only at 600px) */
@media (min-width: 600px) and (max-width: 960px) {
	.main-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid; }
	.main-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.main-nav .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100000; display: flex; flex-direction: column; overflow: auto; }
	.main-nav .is-menu-open .wp-block-navigation__responsive-container-close { display: block; position: absolute; top: 16px; right: 16px; }
	.main-nav .is-menu-open .wp-block-navigation__container { flex-direction: column; }
	.main-nav .is-menu-open .wp-block-navigation__submenu-container { position: static !important; opacity: 1 !important; visibility: visible !important; height: auto !important; width: auto !important; }
	.main-nav .is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
}

/* Mode switcher + search buttons */
.header-tools { display: flex; gap: 10px; flex-shrink: 0; }
.theme-switch { position: relative; }
.theme-toggle svg, .theme-menu svg, .search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon { display: none; }
:root:not([data-theme]) .theme-toggle .icon-light, :root[data-theme="light"] .theme-toggle .icon-light,
:root[data-theme="dark"] .theme-toggle .icon-dark, :root[data-theme="reading"] .theme-toggle .icon-reading { display: block; }
.theme-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 210px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--gold-light); border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .18); }
.theme-menu[hidden] { display: none; }
.theme-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 .95rem var(--sans); text-align: left; cursor: pointer; }
.theme-menu button:hover { background: var(--cream-2); }
.theme-menu button[aria-checked="true"] { color: var(--gold-dark); font-weight: 700; }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; }

/* Search bar under the header, with live suggestions */
.search-panel { border-top: 1px solid var(--gold-light); background: var(--cream); padding: 14px 0; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 10px; }
.search-field { position: relative; flex: 1; min-width: 0; display: flex; }
.search-form input { flex: 1; min-width: 0; padding: 12px 18px; border: 1.5px solid var(--gold-light); border-radius: 999px; background: var(--surface); font: inherit; color: var(--text); }
.search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(141,126,88,.18); }
.search-form button, .wp-block-search__button { flex-shrink: 0; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-accent); font: 600 1rem var(--sans); cursor: pointer; transition: background .2s; }
.search-form button:hover, .wp-block-search__button:hover { background: var(--gold-dark); }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: 14px; box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .16); max-height: min(60vh, 420px); overflow-y: auto; }
.search-suggest[hidden] { display: none; }
.search-suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-suggest a:hover, .search-suggest a.active { background: var(--cream-2); }
.search-suggest mark { background: var(--gold-light); color: inherit; border-radius: 3px; padding: 0 1px; }
.suggest-type { flex-shrink: 0; font-size: .75rem; font-weight: 600; color: var(--gold-dark); }
.search-suggest .suggest-all { justify-content: flex-start; margin-top: 4px; border-top: 1px solid var(--gold-light); border-radius: 0 0 10px 10px; font-weight: 600; color: var(--gold-dark); }
.suggest-msg { padding: 10px 12px; color: var(--muted); }
.wp-block-search__input { padding: 12px 18px; border: 1.5px solid var(--gold-light); border-radius: 999px; background: var(--surface); color: var(--text); }
.wp-block-search__inside-wrapper { gap: 10px; }

/* ===== Sections ===== */
.site-main section { padding: clamp(48px, 7vw, 84px) 0; margin: 0; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }
/* long intro text: 3 lines, then «Ավելին» / «Պակաս» (button added by the script) */
.read-more.is-clamped:not(.is-open) { max-height: calc(var(--read-more-lines, 4) * 1.65em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
/* "read-more-first": the first paragraph is always shown whole, «Ավելին» opens the rest */
.read-more-first.is-clamped:not(.is-open) { max-height: none; -webkit-mask-image: none; mask-image: none; }
.read-more-first.is-clamped:not(.is-open) > p:not(:first-child) { display: none; }
/* "read-more-all": the whole text is hidden until «Ավելին» is clicked */
.read-more-all.is-clamped:not(.is-open) { display: none; }
.read-more > p { margin: 0 0 .7em; }
.read-more > p:last-child { margin-bottom: 0; }
.read-more-btn { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 0; border: 0; background: none; color: var(--gold-dark); font: 600 .95rem var(--sans); cursor: pointer; }
.read-more-btn[hidden] { display: none; }
.read-more-btn:hover { text-decoration: underline; }
.read-more-btn::after { content: "↓"; transition: transform .2s; }
.read-more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.section-head { margin-bottom: 30px; gap: 16px; }
.section-head > * { margin-block: 0; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-head .lead { margin-top: 12px; }
.link-more a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.link-more a:hover { text-decoration: underline; }

/* Hero */
.hero { overflow: hidden; background: radial-gradient(circle at 85% 20%, var(--cream-2), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero-grid > * { margin: 0; }
/* the second part of the welcome text and the buttons go under the photo, across the full width */
.hero-more { grid-column: 1 / -1; margin-top: calc(clamp(24px, 3vw, 36px) - clamp(28px, 5vw, 70px)) !important; }
.hero-more .lead { max-width: none; margin: 0; }
.hero-text .lead { margin-bottom: 0; }
.btns { gap: 12px; margin-top: 26px; }
.btns .wp-block-button__link { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: .2s; }
.btn-primary .wp-block-button__link { background: var(--gold); color: var(--on-accent); box-shadow: 0 8px 20px rgba(141,126,88,.35); }
.btn-primary .wp-block-button__link:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost .wp-block-button__link { background: transparent; border: 1.5px solid var(--gold); color: var(--gold-dark); }
.btn-ghost .wp-block-button__link:hover { background: var(--gold); color: var(--on-accent); }
.wp-element-button { color: var(--on-accent); }
.hero-img { position: relative; margin: 0 18px 18px 0 !important; }
.hero-img::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); }
.hero-img img { position: relative; display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); background: var(--gold-light); }

/* Sliders: --per items visible; the script adds the < > buttons */
.slider { position: relative; margin: 0; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 10px 0 30px; margin: -10px 0 -30px; list-style: none; }
.track::-webkit-scrollbar { display: none; }
.track > * { scroll-snap-align: start; margin: 0 !important; min-width: 0; }
.track.few { grid-auto-columns: minmax(0, 1fr); }
.slider-btn { position: absolute; top: var(--btn-top, 50%); z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--gold-light); background: var(--surface); color: var(--heading); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 18px rgba(var(--shadow-rgb), .16); transition: background .2s, color .2s, border-color .2s, opacity .2s; }
.slider-btn.prev { left: -66px; }
.slider-btn.next { right: -66px; }
.slider-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.slider-btn:disabled { opacity: .45; }
.slider-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Post cards */
.cards { --per: 4; --gap: 22px; }
.card { height: 100%; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-light); display: flex; flex-direction: column; transition: .25s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(var(--shadow-rgb), .12); }
.card > * { margin: 0 !important; }
.card .wp-block-post-featured-image { aspect-ratio: 16/10; background: var(--gold-light); overflow: hidden; }
.card .wp-block-post-featured-image.is-placeholder { display: grid; place-items: center; background: linear-gradient(135deg, var(--cream-2), var(--gold-light)); }
.card .wp-block-post-featured-image.is-placeholder img { width: 38% !important; height: auto !important; object-fit: contain; opacity: .55; }
.card .wp-block-post-featured-image a, .card .wp-block-post-featured-image img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
/* the picture fills the 16/10 box and can't stretch it (a tall picture made its card's picture bigger) */
.card .wp-block-post-featured-image:not(.is-placeholder) { position: relative; }
.card .wp-block-post-featured-image:not(.is-placeholder) img { position: absolute; inset: 0; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body > * { margin: 0 !important; }
.card .wp-block-post-date { font-size: .8rem; color: var(--gold); font-weight: 600; }
.card .wp-block-post-title { font-size: 1.05rem; margin: 0; }
.card .wp-block-post-title a { text-decoration: none; color: var(--heading); }
.card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.card { position: relative; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; list-style: none; padding: 0; }
.card-grid > li { margin: 0 !important; } /* WordPress adds a top margin to every card except the first */

/* Newspaper issues */
.paper { background: var(--surface); border-block: 1px solid var(--gold-light); }
.issues { --per: 4; --gap: 24px; }
.issue { position: relative; transition: transform .25s; }
.issue:hover { transform: translateY(-6px); }
.issue > * { margin: 0; }
.issue figure { margin: 0; }
.issue img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--gold-light); background: var(--cream-2); box-shadow: 0 10px 24px rgba(var(--shadow-rgb), .08); transition: box-shadow .25s; }
.issue:hover img { box-shadow: 0 20px 40px rgba(var(--shadow-rgb), .18); }
.issue-title { margin-top: 14px !important; }
.issue-title a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--heading); text-decoration: none; }
.issue-title small { font-family: var(--sans); font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--gold); color: var(--on-accent); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* Upcoming issue */
.blur-cover { position: relative; overflow: hidden; background: var(--cream-2); }
.blur-cover img { width: 100%; height: 100%; object-fit: cover; filter: blur(7px) saturate(.8); transform: scale(1.15); }
.blur-cover figcaption { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.soon-pill { display: inline-block; margin: 0; background: var(--gold); color: var(--on-accent); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; letter-spacing: .03em; }

/* Upcoming issue: dark band, blurred photo behind, countdown */
.upcoming-b { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; margin-top: 40px; padding: 26px; border-radius: var(--radius); background: var(--band); color: var(--on-band); }
.upcoming-b > * { position: relative; margin: 0 !important; min-width: 0; }
.upcoming-b > .bg { position: absolute; inset: 0; opacity: .35; }
.upcoming-b .cover { width: 120px; aspect-ratio: 3/4; flex-shrink: 0; border-radius: 10px; border: 2px solid var(--band-accent); }
.upcoming-b .cover figcaption { font-size: 1.6rem; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.upcoming-b h3 { margin: 10px 0 4px; font-size: 1.35rem; color: var(--on-band); }
.upcoming-b .release { margin: 0 0 14px; opacity: .85; }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.countdown div { min-width: 64px; padding: 8px 6px; border-radius: 10px; background: rgba(252,249,237,.12); border: 1px solid rgba(228,217,190,.3); text-align: center; }
.countdown b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; color: var(--band-accent); }
.countdown small { font-size: .7rem; opacity: .85; }
@media (max-width: 600px) {
	.upcoming-b { gap: 14px; padding: 14px; }
	.upcoming-b .cover { display: none; } /* the blurred photo is already the background */
	.upcoming-b h3 { font-size: 1.05rem; margin-top: 6px; }
	.upcoming-b .release { font-size: .85rem; }
	.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.countdown div { min-width: 0; padding: 6px 2px; }
	.countdown b { font-size: 1.15rem; }
	.countdown small { font-size: .62rem; }
	/* phones: the copy under the header (made by theme.js) is shown, the original is hidden */
	.upcoming-b.is-top { margin: 12px 16px 0 !important; }
	.upcoming-b.is-original { display: none; }
}
@media (min-width: 601px) {
	.upcoming-b.is-top { display: none; }
}
@media (max-width: 400px) {
	.countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Greetings slider (quote section): one slide at a time, < > buttons and dots added by the script */
.quote .eyebrow::before { display: none; }
.quote-slider { position: relative; max-width: 860px; margin: 0 auto; }
.quote-slider.is-ready > .wp-block-quote:not(.is-active) { display: none; }
.quote-slider.is-ready > .wp-block-quote.is-active { animation: quote-in .35s ease; }
@keyframes quote-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.quote-slider > .wp-block-quote + .wp-block-quote { margin-top: 48px; } /* before the script runs */
.quote-slider .slider-btn { top: 50%; }
.quote-slider .slider-btn.prev { left: -78px; }
.quote-slider .slider-btn.next { right: -78px; }
.quote .wp-block-quote.is-letter { font-family: var(--sans); font-size: 1.05rem; line-height: 1.75; color: var(--text); text-align: start; }
.quote .wp-block-quote.is-letter p { margin: 0 0 12px; }
.quote .wp-block-quote.is-letter .slide-title { text-align: center; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--heading); margin-bottom: 18px; }
.quote .wp-block-quote.is-letter cite { text-align: center; }
.quote-body.is-clamped:not(.is-open) { max-height: 14em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.quote .wp-block-quote.is-letter .read-more-btn { display: flex; margin: 4px auto 0; }
.quote .wp-block-quote.is-letter .read-more-btn[hidden] { display: none; }
.quote .wp-block-quote cite small { display: block; margin-top: 4px; font-size: .85rem; font-weight: 400; color: var(--muted); }
.quote-dots { display: flex; justify-content: center; gap: 10px; margin-top: 28px; }
.quote-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: var(--gold-light); cursor: pointer; transition: background .2s, transform .2s; }
.quote-dots button[aria-current="true"] { background: var(--gold); transform: scale(1.3); }
@media (max-width: 1060px) {
	.quote-slider { padding-inline: 56px; }
	.quote-slider .slider-btn.prev { left: 0; }
	.quote-slider .slider-btn.next { right: 0; }
}
@media (max-width: 600px) {
	.quote-slider { padding-inline: 0; }
	.quote-slider .slider-btn { position: static; transform: none; }
	.quote-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 24px; }
	.quote-nav .quote-dots { margin-top: 0; }
	.quote .wp-block-quote.is-letter { font-size: 1rem; }
}

/* Quote */
.quote { text-align: center; }
.quote .wp-block-quote { margin: 0 auto; max-width: 820px; border: 0; padding: 0; font-family: var(--serif); font-size: clamp(1.15rem, 2.3vw, 1.55rem); color: var(--heading); line-height: 1.6; }
.quote .wp-block-quote cite { display: block; margin-top: 20px; font-family: var(--sans); font-size: 1rem; font-style: normal; color: var(--gold-dark); font-weight: 600; }

/* ===== Inner pages ===== */
.page-section { padding-block: clamp(36px, 6vw, 70px); }
.page-section .entry-date { color: var(--gold); font-weight: 600; font-size: .9rem; }
.wp-block-query-title { margin-bottom: 30px; }
.wp-block-query-pagination { margin-top: 40px; gap: 10px; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.wp-block-query-pagination .current { background: var(--gold); color: var(--on-accent); }

/* ===== Team page (template "Թիմ"): the page's photo galleries become one even grid of cards ===== */
.team-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); background: radial-gradient(circle at 85% 0%, var(--cream-2), transparent 60%); text-align: center; }
.team-hero .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 2px; background: var(--gold); vertical-align: middle; margin-left: 10px; }
.team-hero .lead { margin: 0 auto; }
.team-count { display: inline-block; margin-top: 18px; padding: 4px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--gold-light); color: var(--gold-dark); font-size: .85rem; font-weight: 600; }
.team-section { padding: clamp(24px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 24px; }
.team-grid > * { margin: 0 !important; }
/* the page's own title, empty columns and prev/next links are not needed here */
.team-grid > h2:first-child, .team-grid > .wp-block-columns, .team-grid > p:empty { display: none; }
.team-grid > .wp-block-gallery { display: contents; }
/* share buttons: one full-width row under the cards, wrapping on small screens */
.team-grid > .addtoany_share_save_container { grid-column: 1 / -1; margin-top: 12px !important; }
.team-grid .a2a_kit { display: flex; flex-wrap: wrap; gap: 8px; }
.team-grid .a2a_kit > a { padding: 0 !important; }
.team-grid .wp-block-image {
	position: relative; display: flex; flex-direction: column; width: auto !important; height: auto !important; max-height: none !important; margin: 0 !important;
	background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.team-grid .wp-block-image:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(var(--shadow-rgb), .14); }
/* the gallery's own flex sizing gives the photo 0 height: fixed 3:4 photo, name under it */
.team-grid .wp-block-image > a { display: block !important; flex: 0 0 auto !important; height: auto !important; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-2); }
.team-grid .wp-block-image img { display: block; flex: none !important; width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 20%; transition: transform .4s; }
.team-grid .wp-block-image figcaption { flex: 1 0 auto !important; }
.team-grid .wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.has-nested-images .team-grid figure.wp-block-image figcaption,
.team-grid .wp-block-image figcaption {
	position: static !important; margin: 0 !important; padding: 14px 16px 18px !important; max-height: none !important; overflow: visible !important;
	background: none !important; color: var(--heading) !important; text-shadow: none !important; text-align: center;
	font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1.35;
}
.team-grid .wp-block-image figcaption::after { content: "Կարդալ →"; display: block; margin-top: 6px; font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--gold-dark); }
.team-grid .wp-block-image figcaption a { color: inherit; text-decoration: none; font-weight: inherit; }
.team-grid .wp-block-image figcaption a::before { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
/* the role: the italic line under the name in the caption (Ctrl+I in the editor); functions.php moves it to the bottom of the card */
/* each card spans 3 rows of the grid (photo, name, role), so the bands in one row line up even when a role wraps */
.team-grid .wp-block-gallery figure.wp-block-image { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
/* the gallery's blur layer over the bottom of the card would blur the role band */
.team-grid figure.wp-block-image::before { content: none !important; }
.team-grid .team-role { display: flex; align-items: center; justify-content: center; padding: 9px 12px; min-height: calc(1.3em + 18px); background: var(--band); color: var(--on-band); text-align: center; font-family: var(--sans); font-size: .82rem; font-weight: 600; line-height: 1.3; letter-spacing: .02em; }
@media (max-width: 600px) {
	.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
	.team-grid .wp-block-image figcaption { padding: 10px 8px 12px !important; font-size: .85rem; }
	.team-grid .wp-block-image figcaption::after { font-size: .72rem; }
	.team-grid .team-role { padding: 7px 6px; font-size: .74rem; }
}

/* ===== Team member page (template "Թիմի անդամ"): photo on the left, story on the right ===== */
.member-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); background: radial-gradient(circle at 85% 0%, var(--cream-2), transparent 60%); border-bottom: 1px solid var(--gold-light); }
.member-back { margin: 0 0 14px; font-size: .9rem; font-weight: 600; }
.member-back a { color: var(--gold-dark); text-decoration: none; }
.member-back a:hover { text-decoration: underline; }
.member-name { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.member-section { padding: clamp(32px, 5vw, 60px) 0 clamp(56px, 8vw, 96px); }
/* the story wraps around the photo and continues below it, like in a newspaper */
.member-content { max-width: 980px; margin-inline: auto; }
.member-content { display: flow-root; }
.member-content > * { margin: 0 0 1.1em !important; }
/* the name is already the page title; spacers and empty lines are not needed */
.member-content > .wp-block-heading:first-child, .member-content > .wp-block-spacer, .member-content > p:empty { display: none; }
.member-content > p { font-size: 1.05rem; line-height: 1.85; }
.member-content > .wp-block-heading { font-size: 1.3rem; margin-top: .6em !important; }
/* the first photo: a framed portrait on the left, the text flows beside and under it */
.member-content > .wp-block-image:first-of-type {
	float: left; position: relative; width: 320px; max-width: 42%;
	margin: 0 calc(18px + clamp(24px, 4vw, 44px)) 36px 0 !important;
}
.member-content > .wp-block-image:first-of-type::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold); border-radius: var(--radius); }
.member-content > .wp-block-image:first-of-type img { position: relative; display: block; width: 100% !important; height: auto !important; aspect-ratio: 3/4; object-fit: cover; object-position: 50% 20%; border-radius: var(--radius); background: var(--gold-light); box-shadow: 0 18px 40px rgba(var(--shadow-rgb), .14); }
.member-content > .wp-block-image:not(:first-of-type) img { width: auto !important; max-width: 100%; height: auto !important; border-radius: var(--radius); }
/* blocks copied into the pages from the old theme: the old «Previous / Next» links (replaced by the
   member navigation below), Jetpack «Like» and a second set of share buttons (AddToAny already has one) */
.member-content > .wp-block-columns:has(.wp-block-post-navigation-link),
.member-content > .wp-block-jetpack-like,
.member-content > .wp-block-jetpack-sharing-buttons,
.member-content .sharedaddy,
.member-content > .wp-block-comments { display: none !important; } /* comments now come from the template, the same on every member page */
.member-content > .addtoany_share_save_container { margin-top: 1.5em !important; }
/* role line (e.g. «… նախագահ») */
.member-content > h4.wp-block-heading { font-family: var(--sans); font-size: .95rem; font-weight: 700; line-height: 1.6; letter-spacing: .02em; color: var(--gold-dark); text-align: left !important; margin-top: 0 !important; }

/* ===== Comments on member pages ===== */
/* the shared comments part: as wide as the text above it */
.comments-part { margin-block: 0 !important; }
/* Jetpack «Share this» repeats the AddToAny buttons that every page already has */
.sharedaddy.sd-sharing-enabled { display: none !important; }
.comments-area { max-width: 780px; margin: clamp(28px, 4vw, 44px) auto 0 !important; padding-inline: 16px; }
.member-section .comments-area { max-width: 980px; padding-inline: 0; }
.story-content ~ .comments-part .comments-area { max-width: 760px; padding-inline: 0; }
.comments-area > * { margin: 0 !important; }
.comments-area:not(:has(.member-comments)) { display: none; } /* comments closed and none to show */
.member-comments { padding-top: 28px; border-top: 1px solid var(--gold-light); }
.member-comments > * { margin-block: 0; }
.member-comments-title { font-size: 1.4rem; margin: 0 0 18px !important; }
.member-comments .wp-block-comment-template { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.member-comments .wp-block-comment-template ol { list-style: none; margin: 14px 0 0; padding-left: clamp(16px, 4vw, 44px); display: grid; gap: 14px; } /* replies */
.comment-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); }
.comment-card > * { margin: 0 !important; }
.comment-card .wp-block-avatar img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--gold-light); display: block; }
.comment-main { flex: 1; min-width: 0; }
.comment-main > * { margin: 0 !important; }
.comment-meta { gap: 4px 12px; align-items: baseline; }
.comment-meta > * { margin: 0 !important; }
.comment-main .wp-block-comment-author-name { font-family: var(--serif); font-weight: 700; color: var(--heading); }
.comment-main .wp-block-comment-author-name a { color: inherit; text-decoration: none; }
.comment-main .wp-block-comment-date { font-size: .78rem; color: var(--gold); font-weight: 600; }
.comment-main .wp-block-comment-date a { color: inherit; text-decoration: none; }
.comment-main .wp-block-comment-content { margin-top: 6px !important; line-height: 1.7; }
.comment-main .wp-block-comment-content p { margin: 0 0 .6em; }
.comment-main .wp-block-comment-reply-link a { font-size: .82rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.comment-main .wp-block-comment-reply-link a:hover { text-decoration: underline; }
.member-comments .wp-block-comments-pagination { margin: 0 0 24px; gap: 10px; }

/* the form */
.member-comments .comment-respond { padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--gold-light); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.member-comments .comment-reply-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; color: var(--heading); }
.member-comments .comment-reply-title small a { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--gold-dark); }
.member-comments .comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.member-comments .comment-form > p { margin: 0; }
.member-comments .comment-notes, .member-comments .logged-in-as, .member-comments .comment-form-comment, .member-comments .comment-form-cookies-consent, .member-comments .form-submit { grid-column: 1 / -1; }
.member-comments .comment-notes, .member-comments .logged-in-as { font-size: .82rem; color: var(--muted); }
.member-comments .logged-in-as a { color: var(--gold-dark); }
.member-comments label { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; color: var(--heading); }
.member-comments input[type="text"], .member-comments input[type="email"], .member-comments textarea {
	width: 100%; padding: 12px 16px; border: 1.5px solid var(--gold-light); border-radius: 12px; background: var(--cream); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.member-comments textarea { min-height: 130px; resize: vertical; }
.member-comments input:focus, .member-comments textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(141,126,88,.18); }
.member-comments .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.member-comments .comment-form-cookies-consent input { accent-color: var(--gold); width: 16px; height: 16px; }
.member-comments .comment-form-cookies-consent label { display: inline; margin: 0; font-weight: 400; font-size: .85rem; color: var(--muted); }
.member-comments .form-submit .submit { padding: 13px 28px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-accent); font: 600 1rem var(--sans); cursor: pointer; box-shadow: 0 8px 20px rgba(141,126,88,.3); transition: background .2s, transform .2s; }
.member-comments .form-submit .submit:hover { background: var(--gold-dark); transform: translateY(-2px); }
@media (max-width: 600px) {
	.member-comments .comment-form { grid-template-columns: 1fr; }
	.member-comments .form-submit .submit { width: 100%; }
	.comment-card { padding: 14px; gap: 10px; }
	.comment-card .wp-block-avatar img { width: 36px; height: 36px; }
}

/* previous / all / next */
.member-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--gold-light); }
.member-nav-card { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--gold-light); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--heading); transition: transform .2s, box-shadow .2s; min-width: 0; }
.member-nav-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(var(--shadow-rgb), .12); }
.member-nav-card.next { flex-direction: row-reverse; text-align: right; }
.member-nav-card img { width: 56px; height: 72px; flex-shrink: 0; object-fit: cover; object-position: 50% 20%; border-radius: 10px; }
.member-nav-card span { min-width: 0; font-family: var(--serif); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.member-nav-card small { display: block; margin-bottom: 3px; font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--gold-dark); }
.member-nav-all { display: flex; flex-direction: column; align-items: center; padding: 12px 18px; border-radius: 999px; background: var(--gold); color: var(--on-accent); font-weight: 600; font-size: .9rem; text-decoration: none; text-align: center; }
.member-nav-all:hover { background: var(--gold-dark); }
.member-nav-all small { font-size: .7rem; opacity: .85; font-weight: 500; }

@media (max-width: 800px) {
	/* phones: the photo on top, the story under it */
	.member-content > .wp-block-image:first-of-type { float: none; width: min(320px, 80%); max-width: none; margin: 0 auto 36px !important; }
	.member-nav { grid-template-columns: 1fr 1fr; }
	.member-nav-all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
}
@media (max-width: 400px) {
	.member-nav-card img { display: none; }
}

/* ===== «Մեր մասին» page (template "Մեր մասին") ===== */
.about-hero h1 { max-width: 22ch; }
.about-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-intro .lead { margin: 0; }
.about-intro .btns { display: flex; flex-wrap: wrap; }
.about-intro p:empty { display: none; }
.about-content > .addtoany_share_save_container { grid-column: 1 / -1; }
.about-names { padding-bottom: clamp(32px, 5vw, 56px) !important; }
/* the page text: the three names of the association (🇦🇲 🇬🇧 🇷🇺) become cards; the old link lists are shown below as cards too */
.about-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.about-content > * { margin: 0 !important; }
.about-content > p:empty, .about-content > .wp-block-spacer, .about-content > .wp-block-columns { display: none; }
.about-content > p { position: relative; padding: 52px 22px 22px; background: var(--surface); border: 1px solid var(--gold-light); border-top: 3px solid var(--gold); border-radius: var(--radius); line-height: 1.7; }
.about-content > p > a:first-child { position: absolute; top: 14px; left: 20px; font-size: 1.5rem; line-height: 1; text-decoration: none; }
.about-content > p strong { color: var(--heading); }

.lang-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.lang-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); text-decoration: none; color: var(--heading); transition: transform .2s, box-shadow .2s, border-color .2s; }
.lang-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .12); }
.lang-flag { font-size: 2rem; line-height: 1; }
.lang-name { flex: 1; font-family: var(--serif); font-weight: 700; font-size: 1.1rem; }
.lang-more { color: var(--gold-dark); font-weight: 700; transition: transform .2s; }
.lang-card:hover .lang-more { transform: translateX(4px); }

.about-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.about-link { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.about-link:hover { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(var(--shadow-rgb), .12); }
.about-link .eyebrow { margin: 0; }
.about-link-title { font-family: var(--serif); font-weight: 700; font-size: 1.6rem; line-height: 1.25; color: var(--heading); }
.about-links p:empty, .about-links br { display: none; }
.about-faces { display: flex; align-items: center; padding-left: 10px; }
.about-faces img { width: 52px; height: 52px; margin-left: -10px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 3px solid var(--surface); box-shadow: 0 4px 10px rgba(var(--shadow-rgb), .15); }
.about-faces-more { margin-left: 12px; font-weight: 600; font-size: .9rem; color: var(--gold-dark); }
.about-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.about-chips span { padding: 4px 12px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--gold-light); font-size: .85rem; color: var(--heading); }
.about-link-more { margin-top: auto; font-weight: 600; color: var(--gold-dark); }

/* ===== Reading pages (template "Ընթերցանության էջ"): «Մեր մասին 🇦🇲», «About us 🇬🇧» … ===== */
.story-content { max-width: 760px; margin-inline: auto; }
.story-content > * { margin: 0 0 1.1em !important; }
.story-content > p { font-size: 1.07rem; line-height: 1.9; }
.story-content > p:empty, .story-content > .wp-block-spacer,
.story-content > .wp-block-columns:has(.wp-block-post-navigation-link),
.story-content > .wp-block-jetpack-like, .story-content > .wp-block-jetpack-sharing-buttons,
.story-content > .wp-block-comments { display: none !important; }
.story-content > .wp-block-heading { text-align: center !important; font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: .4em 0 1em !important; }
.story-content > .wp-block-image { margin: 1.6em 0 2em !important; }
.story-content > .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px rgba(var(--shadow-rgb), .14); }
.story-content > .wp-block-image figcaption { text-align: center; font-size: .85rem; color: var(--muted); }

/* ===== «Մեր խորագրերը» (template "Խորագրեր") ===== */
.team-hero .member-back { margin-bottom: 18px; }
.rubric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 24px; }
.rubric-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.rubric-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(var(--shadow-rgb), .14); }
.rubric-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.rubric-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rubric-card:hover .rubric-img img { transform: scale(1.04); }
.rubric-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.rubric-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--heading); }
.rubric-emoji { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--cream-2); border: 1px solid var(--gold-light); font-size: 1.2rem; }
.rubric-text { font-size: .92rem; line-height: 1.65; color: var(--muted); }
.rubric-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; color: var(--gold-dark); }
.story-content > p.story-link { margin-bottom: 10px !important; }
.story-content > p.story-link a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--gold-light); border-left: 3px solid var(--gold); border-radius: 10px; color: var(--heading) !important; font-family: var(--serif); font-weight: 700; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.story-content > p.story-link a::after { content: "→"; color: var(--gold-dark); font-family: var(--sans); }
.story-content > p.story-link a:hover { transform: translateX(4px); box-shadow: 0 8px 20px rgba(var(--shadow-rgb), .1); }
/* ===== Article cards (lists of articles on section and rubric pages) and the author card ===== */
.story-content > .article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.4em 0 1.8em !important; }
.article-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); overflow: hidden; text-decoration: none !important; color: var(--text) !important; transition: transform .25s, box-shadow .25s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .13); }
.article-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--cream-2); }
.article-img.is-empty { background: linear-gradient(135deg, var(--cream-2), var(--gold-light)); }
.article-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.article-card:hover .article-img img { transform: scale(1.04); }
.article-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.article-title { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: var(--heading); }
.article-text { font-size: .88rem; line-height: 1.6; color: var(--muted); }
.article-more { margin-top: auto; padding-top: 4px; font-size: .85rem; font-weight: 600; color: var(--gold-dark); }
.story-content > .author-card { display: inline-flex; align-items: center; gap: 12px; margin: .6em 0 1.2em !important; padding: 8px 18px 8px 8px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: 999px; text-decoration: none; color: var(--heading); transition: box-shadow .2s, border-color .2s; }
.story-content > .author-card:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(var(--shadow-rgb), .1); }
.author-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.author-card span { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.author-card small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--gold-dark); }
/* rubric page: the articles of every issue, one group per issue */
.story-content > .rubric-issue { margin: 1.2em 0 2em !important; }
.rubric-issue-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px solid var(--gold-light); }
.rubric-issue-title { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; color: var(--heading); text-decoration: none; }
.rubric-issue-title:hover { color: var(--gold-dark); }
.rubric-issue-more { font-size: .85rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.rubric-issue-more:hover { text-decoration: underline; }
.rubric-issue .article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) {
	.story-content > .article-grid, .rubric-issue .article-grid { grid-template-columns: 1fr; }
}

/* ===== Newspaper («Թերթ», issues, sections) ===== */
.team-hero .lead.read-more { margin-inline: auto; }
.team-hero .read-more-btn { margin-inline: auto; }
.paper-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 24px; }
.paper-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.paper-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(var(--shadow-rgb), .16); }
.paper-cover { display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--cream-2); }
.paper-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.paper-card:hover .paper-cover img { transform: scale(1.03); }
.paper-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 20px; }
.paper-title { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; line-height: 1.15; color: var(--heading); }
.paper-meta { font-size: .88rem; color: var(--muted); }
.paper-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: .9rem; color: var(--gold-dark); }
.paper-card.is-soon { border-style: dashed; border-color: var(--gold); }
.paper-card.is-soon .paper-cover img { filter: blur(3px) saturate(.8); transform: scale(1.06); }
.paper-card.is-soon .soon-pill { align-self: flex-start; }
/* issue page: table of contents, one full-width row per section (as tall as its own list of articles) */
.issue-toc { display: grid; gap: 18px; }
.toc-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: stretch; padding: 18px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); }
/* the picture fills the row's height, so a long list of articles leaves no empty space under it */
.toc-img { display: block; min-height: 165px; overflow: hidden; border-radius: 10px; background: var(--cream-2); }
.toc-body { align-self: start; }
.toc-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.toc-row:hover .toc-img img { transform: scale(1.04); }
.toc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--gold-light); }
.toc-title { font-family: var(--serif); font-weight: 700; font-size: 1.4rem; color: var(--heading); text-decoration: none; }
.toc-title:hover { color: var(--gold-dark); }
.toc-count { font-size: .8rem; font-weight: 700; color: var(--gold); }
.toc-more { margin-left: auto; font-size: .88rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; white-space: nowrap; }
.toc-more:hover { text-decoration: underline; }
.toc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px; }
.toc-list a { position: relative; display: block; padding: 7px 10px 7px 22px; border-radius: 8px; font-size: .95rem; line-height: 1.45; color: var(--text); text-decoration: none; transition: background .2s, color .2s; }
.toc-list a::before { content: ""; position: absolute; left: 8px; top: 1.05em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.toc-list a:hover { background: var(--cream-2); color: var(--gold-dark); }
.toc-text { display: block; font-size: .95rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 800px) {
	/* narrow screens: the picture goes on top, across the whole row, instead of shrinking at the side */
	.toc-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
	.toc-img { min-height: 0; aspect-ratio: 5/2; }
	.toc-title { font-size: 1.2rem; }
}
@media (max-width: 560px) {
	.toc-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.toc-row { padding: 12px; }
	.toc-img { aspect-ratio: 16/9; }
	.toc-list a { font-size: .9rem; padding: 6px 6px 6px 18px; }
	.toc-list a::before { left: 5px; }
}
.issue-toc p:empty, .issue-toc br { display: none; }
.rubric-grid p:empty, .rubric-grid br, .paper-grid p:empty, .paper-grid br { display: none; }
.team-section .member-nav { margin-top: clamp(40px, 6vw, 64px); }
@media (max-width: 600px) {
	.paper-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.paper-body { padding: 12px; }
	.paper-title { font-size: 1.25rem; }
	.paper-meta { font-size: .78rem; }
}
.member-nav-emoji { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--cream-2); font-size: 1.5rem; }
@media (max-width: 600px) {
	.rubric-grid { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
	.rubric-body { padding: 12px; gap: 6px; }
	.rubric-title { font-size: 1rem; gap: 6px; }
	.rubric-emoji { width: 30px; height: 30px; font-size: .95rem; }
	.rubric-text { display: none; }
}

@media (max-width: 960px) {
	.about-intro { grid-template-columns: 1fr; }
	.about-intro .hero-img { max-width: 560px; }
	.about-content { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.lang-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
	.lang-card { padding: 14px; gap: 10px; }
	.lang-flag { font-size: 1.5rem; }
	.lang-name { font-size: .95rem; }
	.about-links { grid-template-columns: 1fr; }
}

/* ===== «Մատյան»: memorable days ===== */
.matyan-days, .matyan-posts { padding: clamp(40px, 6vw, 72px) 0 !important; }
.next-day { display: flex; align-items: center; gap: 22px; margin-bottom: 28px; padding: 18px 22px; background: var(--band); color: var(--on-band); border-radius: var(--radius); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.next-day:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .2); }
.next-day-date { display: grid; place-items: center; flex-shrink: 0; width: 104px; height: 96px; border-radius: 14px; background: var(--gold); color: var(--on-accent); font-size: .85rem; font-weight: 600; line-height: 1.1; text-align: center; }
.next-day-date b { display: block; font-family: var(--serif); font-size: 2.2rem; }
.next-day-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.next-day .eyebrow { margin: 0; color: var(--band-accent); }
.next-day .eyebrow::before { background: var(--band-accent); }
.next-day-title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.3; color: var(--on-band); }
.next-day-more { font-size: .88rem; font-weight: 600; color: var(--band-accent); }

.year-calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cal-month { padding: 14px 14px 16px; background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); }
.cal-name { margin-bottom: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: var(--heading); text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cal-wd { font-size: .62rem; font-weight: 700; color: var(--gold-dark); padding-bottom: 4px; }
.cal-day { display: grid; place-items: center; aspect-ratio: 1; font-size: .8rem; color: var(--text); border-radius: 50%; }
:root { --holiday: #9c3d2e; --mourning: #1f1d1a; }
:root[data-theme="dark"] { --holiday: #c7604c; --mourning: #000; }
:root[data-theme="reading"] { --holiday: #8e3a28; }
/* holidays red, mourning days (April 24) black — as on the old calendar */
.cal-day.is-marked { color: #fff; font-weight: 700; text-decoration: none; transition: transform .15s, filter .15s; }
.cal-day.is-holiday { background: var(--holiday); }
.cal-day.is-mourning { background: var(--mourning); }
:root[data-theme="dark"] .cal-day.is-mourning { box-shadow: inset 0 0 0 1px #888; }
.cal-day.is-marked:hover { filter: brightness(1.15); transform: scale(1.15); }
.next-day.is-holiday .next-day-date { background: var(--holiday); color: #fff; }
.next-day.is-mourning .next-day-date { background: var(--mourning); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--heading); font-weight: 700; }

.day-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 28px; }
.day-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--cream); border: 1px solid var(--gold-light); border-radius: 12px; text-decoration: none; color: var(--heading); transition: border-color .2s, box-shadow .2s; }
.day-item:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(var(--shadow-rgb), .1); }
.day-date { display: grid; place-items: center; flex-shrink: 0; width: 84px; padding: 6px 0; border-radius: 10px; background: var(--cream-2); font-size: .7rem; font-weight: 600; color: var(--gold-dark); line-height: 1.1; text-align: center; }
.day-date b { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--heading); }
.day-title { font-family: var(--serif); font-weight: 700; font-size: .98rem; line-height: 1.35; }
.matyan-days .link-more { margin: 20px 0 0; text-align: right; }
.matyan-days p:empty, .matyan-days br { display: none; }
@media (max-width: 1000px) { .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px) {
	.year-calendar { gap: 8px; }
	.cal-month { padding: 10px 8px 12px; }
	.cal-wd { font-size: .52rem; }
	.cal-day { font-size: .7rem; }
	.next-day { gap: 14px; padding: 14px; }
	.next-day-date { width: 72px; height: 72px; }
	.next-day-date b { font-size: 1.7rem; }
	.next-day-title { font-size: 1.05rem; }
	.day-list { grid-template-columns: minmax(0, 1fr); }
}

/* Matyan: green bar over the list of memorable days */
.days-bar { margin: 32px 0 0; padding: 16px 22px; background: var(--band); border-radius: var(--radius); }
.days-bar-title { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; color: var(--on-band); }
.days-bar + .day-list { margin-top: 16px; }

/* section page of an issue: «Խորագրի մասին» card */
.story-content ~ .wp-block-shortcode, .rubric-about { max-width: 760px; }
.rubric-about { display: flex; gap: 20px; align-items: stretch; margin: clamp(28px, 4vw, 44px) auto 0; padding: 16px; background: var(--surface); border: 1px solid var(--gold-light); border-left: 4px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
.rubric-about:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .12); }
.rubric-about-img { flex: 0 0 180px; border-radius: 10px; overflow: hidden; background: var(--cream-2); }
.rubric-about-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rubric-about-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rubric-about .eyebrow { margin: 0; }
.rubric-about-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--heading); }
.rubric-about-text { font-size: .93rem; line-height: 1.65; color: var(--muted); }
.rubric-about-more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--gold-dark); }
@media (max-width: 600px) {
	.rubric-about { flex-direction: column; }
	.rubric-about-img { flex-basis: auto; aspect-ratio: 16/9; }
}

/* Quiz (posts with a test): one card per question */
.ads-quiz { display: grid; gap: 16px; margin: 1em 0 !important; }
.ads-quiz-intro { margin: 0; color: var(--muted); }
.ads-quiz-q { margin: 0; padding: 18px 20px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); }
.ads-quiz-q legend { float: left; width: 100%; margin-bottom: 12px; padding: 0; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.45; color: var(--heading); }
.ads-quiz-q label { clear: both; display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--gold-light); border-radius: 10px; background: var(--cream); cursor: pointer; transition: border-color .2s, background .2s; }
.ads-quiz-q label:hover { border-color: var(--gold); }
.ads-quiz-q input { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.ads-quiz-q label:has(input:checked) { border-color: var(--gold); background: var(--cream-2); }
.ads-quiz.is-checked .ads-quiz-q.is-right { border-color: #4f7a28; }
.ads-quiz.is-checked .ads-quiz-q.is-wrong { border-color: var(--holiday); }
.ads-quiz.is-checked label.is-answer { border-color: #4f7a28; background: rgba(79, 122, 40, .12); }
.ads-quiz.is-checked label.is-answer::after { content: "✓"; margin-left: auto; font-weight: 700; color: #4f7a28; }
.ads-quiz.is-checked label.is-picked-wrong { border-color: var(--holiday); background: rgba(156, 61, 46, .1); }
.ads-quiz.is-checked label.is-picked-wrong::after { content: "✗"; margin-left: auto; font-weight: 700; color: var(--holiday); }
.ads-quiz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ads-quiz-actions button { padding: 12px 26px; border: 0; border-radius: 999px; background: var(--gold); color: var(--on-accent); font: 600 1rem var(--sans); cursor: pointer; }
.ads-quiz-actions button:hover { background: var(--gold-dark); }
.ads-quiz-actions .is-secondary { background: transparent; color: var(--gold-dark); border: 1.5px solid var(--gold); }
.ads-quiz-actions .is-secondary:hover { background: var(--gold); color: var(--on-accent); }
.ads-quiz-result { margin: 0; padding: 16px 20px; border-radius: var(--radius); background: var(--band); color: var(--on-band); font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.ads-quiz-result[hidden] { display: none; }

/* ===== Footer ===== */
.site-footer { background: var(--band); color: #e9e4d2; padding-top: 60px; }
:root[data-theme="dark"] .site-footer, :root[data-theme="reading"] .site-footer { color: var(--on-band); }
/* three equal, centred columns: Կայք | Թերթ | Կապ.
   A column never gets narrower than 220px: when there is no room it moves to the next row. */
.footer-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; text-align: center; }
.footer-grid > * { flex: 1 1 220px; }
.footer-grid ul { justify-items: center; }
.footer-grid .socials { justify-content: center; }
.footer-grid > * { margin: 0 !important; }
.site-footer h4 { color: var(--band-accent); font-size: 1.05rem; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer li { margin: 0; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--band-accent); }
.footer-all { margin: 12px 0 0; }
.footer-all a { font-weight: 600; color: var(--band-accent); opacity: 1; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(228,217,190,.4); display: grid; place-items: center; opacity: 1; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(228,217,190,.2); padding: 18px 0; font-size: .85rem; opacity: .75; }
.footer-bottom .container { gap: 4px 24px; justify-content: center; text-align: center; }
.footer-bottom p { margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 1360px) {
	.has-slider > .container { padding-inline: 58px; }
	.slider-btn.prev { left: -54px; }
	.slider-btn.next { right: -54px; }
}
@media (max-width: 1100px) {
	.cards { --gap: 16px; }
	.card-body { padding: 14px; }
	.card .wp-block-post-title { font-size: .95rem; }
}
@media (max-width: 960px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-img { max-width: 560px; }
	.issues { --gap: 16px; }
	.issue-title a { font-size: 1.3rem; }
}
@media (max-width: 800px) {
	/* sliders become a 2×2 grid; the buttons shift it by one item */
	.track { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; }
	.track > .off { display: none; }
	.track.few > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - var(--gap)) / 2); }
	.cards, .issues { --gap: 14px; }
	.card-body { padding: 12px; gap: 6px; }
	.card .wp-block-post-date { font-size: .72rem; }
	.card .wp-block-post-title { font-size: .85rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.badge { top: 8px; left: 8px; font-size: .68rem; padding: 3px 9px; }
	.issue img { border-radius: 10px; }
}
@media (max-width: 600px) {
	.topbar { display: none; }
	.brand-sub { display: none; }
	.brand-name { font-size: 1.1rem; }
	.brand .wp-block-site-logo img { width: 48px; }
	.header-main .container { gap: 10px; }
	.header-tools { gap: 8px; }
	.theme-toggle, .search-toggle, .main-nav .wp-block-navigation__responsive-container-open { width: 42px; height: 42px; }
	.site-footer { padding-top: 28px; font-size: .88rem; }
	.footer-grid { gap: 22px 14px; }
	.site-footer h4 { font-size: .95rem; margin-bottom: 8px; }
	.site-footer ul { gap: 4px; }
	.socials { margin-top: 10px; gap: 8px; }
	.socials a { width: 36px; height: 36px; }
	.footer-bottom { margin-top: 20px; padding: 12px 0; font-size: .75rem; }
	.footer-bottom .container { justify-content: center; text-align: center; gap: 2px 10px; }
	.issue-title a { font-size: 1.15rem; }
	.issue-title { margin-top: 8px !important; }
	.issue-title small { display: none; }
	.hero-img { margin: 0 10px 10px 0 !important; }
	.hero-img::before { inset: 10px -10px -10px 10px; }
	.btns .wp-block-button { flex: 1; }
	.btns .wp-block-button__link { width: 100%; justify-content: center; }
	.has-slider > .container { padding-inline: 44px; }
	.slider-btn { width: 36px; height: 36px; }
	.slider-btn.prev { left: -42px; }
	.slider-btn.next { right: -42px; }
}
@media (max-width: 400px) {
	.header-main .container { gap: 8px; }
	.theme-toggle, .search-toggle, .main-nav .wp-block-navigation__responsive-container-open { width: 38px; height: 38px; }
	.header-tools { gap: 6px; }
	.brand { gap: 8px; }
	.brand .wp-block-site-logo img { width: 40px; }
	.brand-name { font-size: .92rem; }
	.has-slider > .container { padding-inline: 36px; }
	.slider-btn { width: 30px; height: 30px; }
	.slider-btn.prev { left: -34px; }
	.slider-btn.next { right: -34px; }
	.cards, .issues { --gap: 10px; }
	.card-body { padding: 8px; }
	.btns .wp-block-button { flex: 1 1 100%; }
}
@media (max-width: 340px) {
	.brand .wp-block-site-logo img { width: 34px; }
	.brand-name { font-size: .8rem; letter-spacing: 0; overflow-wrap: normal; word-break: keep-all; }
	.theme-toggle, .search-toggle, .main-nav .wp-block-navigation__responsive-container-open { width: 34px; height: 34px; border-radius: 8px; }
}

/* ===== Article look (body.story-v2: every article of the newspaper, see diaspora_school_story_v2_ids()) =====
   Only the page's own content, laid out over the full width: the opening (lead + first picture) side by side,
   wide pictures, the interview as question (left) / answer (right), the text always at a comfortable width. */
@supports (animation-timeline: scroll()) {
	.story-v2::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); animation: story-progress linear both; animation-timeline: scroll(root); }
	@keyframes story-progress { to { transform: scaleX(1); } }
}
.story-v2 .story-content { --measure: 720px; max-width: none; }
.story-v2 .story-content > * { max-width: var(--measure); margin-inline: auto !important; }
.story-v2 .story-content > :is(.story-qa, .wp-block-gallery) { max-width: none; }
.story-v2 .story-content > .wp-block-image.is-wide { max-width: none; }
.story-v2 .story-content > .story-intro:has(> .wp-block-image) { max-width: none; }
/* text */
.story-v2 .story-content p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.85; text-indent: 1.6em; margin-top: 0 !important; margin-bottom: .7em !important; }
.story-v2 .story-content p:is(.story-kicker, .is-lead, .is-first, .is-question, .is-caption, .is-signoff, .is-verse, .story-link) { text-indent: 0; }
/* lines of a poem: no indent, close together, a little space around the whole poem */
.story-v2 .story-content p.is-verse { margin: 0 auto .15em !important; line-height: 1.7; }
.story-v2 .story-content :not(.is-verse) + p.is-verse { margin-top: 1.2em !important; }
.story-v2 .story-content p.is-verse:not(:has(+ .is-verse)) { margin-bottom: 1.4em !important; }
/* rubric line */
.story-v2 .story-kicker { display: flex; align-items: center; gap: 14px; margin-top: 0 !important; margin-bottom: 1.4em !important; font-family: var(--sans) !important; font-size: .78rem !important; font-weight: 700; letter-spacing: .16em; line-height: 1.4 !important; color: var(--gold-dark); }
.story-v2 .story-kicker::after { content: ""; flex: 1; height: 1px; background: var(--gold-light); }
/* the opening: lead paragraphs at the left, the first picture at the right */
.story-v2 .story-intro { margin-top: 0 !important; margin-bottom: 3.5em !important; }
.story-v2 .story-intro > * { margin-inline: 0 !important; }
.story-v2 .story-intro .wp-block-image { margin: 0 0 1.6em !important; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(var(--shadow-rgb), .18); }
.story-v2 .story-intro .wp-block-image img { display: block; width: 100% !important; height: auto; }
.story-v2 .is-lead { font-size: 1.22rem !important; line-height: 1.75 !important; color: var(--heading); }
.story-v2 .story-content p.is-first::first-letter { float: left; margin: .06em .12em 0 0; font-size: 3.8em; line-height: .8; font-style: normal; font-weight: 700; color: var(--gold); }
/* separators: a small ornament */
.story-v2 .story-content > hr.wp-block-separator { width: 100% !important; max-width: none; height: auto; margin: 2.4em auto !important; border: 0 !important; background: none !important; text-align: center; opacity: 1; }
.story-v2 .story-content > hr.wp-block-separator::before { content: "❖"; color: var(--gold); font-size: 1rem; }
.story-v2 .story-content > .is-signoff ~ hr.wp-block-separator { display: none; }
/* a picture between parts of the text: a wide one over the full width, an upright or small one at its own size */
.story-v2 .story-content > .wp-block-image { width: fit-content; margin-block: 2.4em .8em !important; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(var(--shadow-rgb), .16); }
.story-v2 .story-content > .wp-block-image img { display: block; max-width: 100%; height: auto; }
.story-v2 .story-content > .wp-block-image.is-wide { width: auto; }
.story-v2 .story-content > .wp-block-image.is-wide img { width: 100%; max-height: 86vh; object-fit: cover; object-position: 50% 30%; }
.story-v2 .story-content > .wp-block-image.is-tall img { width: auto !important; max-height: 80vh; }
.story-v2 .story-content > .wp-block-image:not(:has(+ .is-caption)) { margin-bottom: 2.4em !important; }
.story-v2 .is-caption { margin: 0 auto 2.4em !important; text-align: center; font-family: var(--sans) !important; font-size: .9rem !important; font-style: italic; line-height: 1.5 !important; color: var(--muted) !important; background: none !important; }
/* the interview: each question with its answer */
.story-v2 .story-qa { margin: 0 0 3em !important; padding-top: 2.6em; border-top: 1px solid var(--gold-light); }
.story-v2 .story-qa > .is-question { position: relative; margin: 0 0 1.2em !important; padding-left: 0; font-size: 1.32rem !important; line-height: 1.45 !important; color: var(--heading); }
.story-v2 .story-qa > .is-question::before { content: "Հ."; display: block; margin-bottom: 10px; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--gold); }
.story-v2 .qa-answer > :last-child { margin-bottom: 0 !important; }
/* closing part: picture row over the full width, closing lines at the right */
.story-v2 .story-content > .wp-block-gallery { margin: 3em 0 1em !important; gap: 16px !important; }
.story-v2 .story-content > .wp-block-gallery .wp-block-image { border-radius: var(--radius); overflow: hidden; }
.story-v2 .story-content > .wp-block-gallery img { height: 100% !important; object-fit: cover; }
.story-v2 .story-content > .is-signoff { max-width: none; }
.story-v2 .is-signoff { margin: 0 0 .3em auto !important; text-align: right; font-size: 1.02rem !important; color: var(--heading); }
.story-v2 .is-signoff:not(.is-signoff + .is-signoff) { margin-top: 2.4em !important; padding-top: 1.2em; border-top: 1px solid var(--gold-light); }
.story-v2 .is-signoff:not(.is-signoff + .is-signoff) strong:only-child { font-style: italic; font-weight: 600; color: var(--gold-dark); }
.story-v2 .is-signoff a { color: var(--gold-dark); }
.story-v2 .story-content ~ * { max-width: 720px; }
@media (min-width: 1024px) {
	.story-v2 .story-intro:has(> .wp-block-image) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: 64px; align-items: start; }
	.story-v2 .story-intro > * { grid-column: 1; }
	.story-v2 .story-intro > .wp-block-image { grid-column: 2; grid-row: 1 / span 50; position: sticky; top: 140px; margin: 0 !important; }
	.story-v2 .story-qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure)); column-gap: 64px; align-items: start; }
	.story-v2 .story-qa > .is-question { position: sticky; top: 140px; margin: 0 !important; }
	.admin-bar.story-v2 :is(.story-intro > .wp-block-image, .story-qa > .is-question) { top: 172px; }
	.story-v2 .story-content > .is-caption { max-width: none; }
}
@media (max-width: 600px) {
	.story-v2 .story-content p { font-size: 1.04rem; line-height: 1.8; text-indent: 1.2em; }
	.story-v2 .is-lead { font-size: 1.08rem !important; }
	.story-v2 .story-qa > .is-question { font-size: 1.12rem !important; }
	.story-v2 .story-qa > .is-question::before { font-size: 2rem; }
}
/* text articles (no interview questions): each picture small on the left with the gold frame of a
   member's biography, the text flows beside and under it */
.story-v2 .story-content:not(:has(.story-qa)) { --photo: 300px; max-width: 880px; margin-inline: auto; display: flow-root; }
.story-v2 .story-content:not(:has(.story-qa)) > * { max-width: none; }
.story-v2 .story-content:not(:has(.story-qa)) > .story-intro { display: block; }
.story-v2 .story-content:not(:has(.story-qa)) > .wp-block-image,
.story-v2 .story-content:not(:has(.story-qa)) > .story-intro > .wp-block-image {
	float: left; clear: left; position: relative; top: auto; width: var(--photo); max-width: 42%;
	margin: 8px 50px 40px 0 !important; overflow: visible; border-radius: var(--radius); box-shadow: none; background: none;
}
.story-v2 .story-content:not(:has(.story-qa)) > .wp-block-image.is-tall,
.story-v2 .story-content:not(:has(.story-qa)) > .story-intro > .wp-block-image.is-tall { width: calc(var(--photo) * .85); }
.story-v2 .story-content:not(:has(.story-qa)) > .wp-block-image img,
.story-v2 .story-content:not(:has(.story-qa)) > .story-intro > .wp-block-image img {
	position: relative; width: 100% !important; height: auto !important; max-height: none; object-fit: fill;
	border-radius: var(--radius); background: var(--cream-2);
	/* the frame: a gold line 14px down and right of the picture (the inner shadow hides its middle) */
	box-shadow: 14px 14px 0 -2px var(--cream), 14px 14px 0 0 var(--gold), 0 18px 40px rgba(var(--shadow-rgb), .14);
}
.story-v2 .story-content:not(:has(.story-qa)) .wp-block-image figcaption { margin: 26px 0 0 !important; text-align: left; font-style: italic; }
.story-v2 .story-content:not(:has(.story-qa)) > :is(hr, .wp-block-gallery, .wp-block-columns, .is-signoff:not(.is-signoff + .is-signoff)) { clear: both; }
@media (max-width: 700px) {
	/* phones: the picture on top, the text under it */
	.story-v2 .story-content:not(:has(.story-qa)) > .wp-block-image,
	.story-v2 .story-content:not(:has(.story-qa)) > .story-intro > .wp-block-image { float: none; width: min(var(--photo), 85%) !important; max-width: none; margin: 1.6em auto 2.4em !important; }
	.story-v2 .story-content:not(:has(.story-qa)) .wp-block-image figcaption { text-align: center; }
}
/* pictures fade in once loaded; a click opens them full screen */
.story-v2 .story-content .wp-block-image { background: var(--cream-2); }
.story-v2 .story-content .wp-block-image img { cursor: zoom-in; transition: opacity .5s; }
.story-v2 .story-content .wp-block-image img.is-loading { opacity: 0; }
/* full-screen viewer */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(12, 14, 8, .94); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 110px); object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); transition: opacity .2s; }
.lightbox img.is-loading { opacity: .35; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox button:hover, .lightbox button:focus-visible { background: rgba(255, 255, 255, .26); outline: none; }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: .85rem; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lb-count { display: none; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
	.lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
	.lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 10px; transform: none; }
}


/* ===== Interactive crossword (diaspora_school_crossword_html(), assets/crossword.js) ===== */
/* a crossword page: the title band sits right on top of the game, no big empty band in between */
.is-crossword .member-hero { padding-bottom: 0; background: none; border-bottom: 0; }
.is-crossword .member-hero .container, .is-crossword .member-section > .container { max-width: 1100px; }
.is-crossword .member-section { padding-top: 18px; }
/* the page title («Խաչբառ») repeats what the crossword's own heading says: kept only for search engines and screen readers */
.is-crossword .member-hero .member-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-crossword .member-hero .container > :not(.member-name) { margin-bottom: 0; }
.is-crossword .story-content > .cw { margin-top: 0 !important; }
.is-crossword .cw-head { align-items: flex-start; text-align: left; margin-bottom: 16px; }
.story-content .cw { margin: 1em 0 2.4em !important; font-family: var(--sans); }
/* a little wider than the text column, so the grid and the clues fit side by side */
@media (min-width: 1000px) {
	.story-v2 .story-content > .cw { --w: min(1100px, calc(100vw - 80px)); width: var(--w); max-width: none; margin-left: calc((100% - var(--w)) / 2) !important; }
}
.cw-play { display: flex; flex-direction: column; min-width: 0; }
/* the clue and the keyboard: one panel kept at the bottom of the screen while the grid is in view,
   so the question and the letters are always seen together */
.cw-dock { position: sticky; bottom: 0; z-index: 6; margin-top: 14px; padding: 10px; border: 1px solid var(--gold-light); border-radius: var(--radius) var(--radius) 0 0; background: var(--surface); box-shadow: 0 -10px 24px rgba(var(--shadow-rgb), .12); }
.cw-dock .cw-bar { position: static; align-items: center; min-height: 52px; margin-bottom: 10px; padding: 6px 8px; gap: 8px; }
.cw-dock .cw-keys { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; margin: 0; max-width: none; }
.cw-dock .cw-keys button, .cw-dock .cw-keys .cw-key-wide { min-width: 0; height: 40px; padding: 0; }
.cw-dock .cw-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.cw-dock .cw-btn { min-width: 0; padding: 8px 6px; font-size: .85rem; }
.cw-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 22px; text-align: center; }
.cw-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .16em; color: var(--gold-dark); }
.cw-title { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--heading); }
.cw-hint { max-width: 520px; font-size: .9rem; line-height: 1.5; color: var(--muted); }
/* the clue being solved: stays under the header while scrolling */
.cw-bar { position: sticky; top: 84px; z-index: 5; display: flex; gap: 8px; align-items: baseline; min-height: 48px; margin-bottom: 18px; padding: 12px 18px; border-radius: var(--radius); background: var(--cream-2); color: var(--muted); font-size: .98rem; line-height: 1.4; transition: background .2s, color .2s; }
.cw-bar.is-on { background: var(--band); color: var(--on-band); box-shadow: 0 12px 30px rgba(var(--shadow-rgb), .18); }
.cw-bar-num { flex: none; color: var(--band-accent); }
.cw-bar-text { flex: 1; }
.cw-nav { flex: none; align-self: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); color: inherit; font: 600 1.3rem/1 var(--sans); cursor: pointer; }
.admin-bar .cw-bar { top: 116px; }
.cw-main { display: grid; grid-template-columns: auto minmax(260px, 1fr); gap: 36px; align-items: start; }
/* a big grid scrolls inside its box (both ways), so the page does not grow and the keyboard stays close */
.cw-board { display: flex; justify-content: safe center; align-items: flex-start; overflow: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid var(--gold-light); border-radius: var(--radius); background: var(--surface); }
/* the cells: at most 40px, smaller for a wide grid so the clues still fit beside it */
.cw-grid { --cell: max(24px, min(40px, calc((min(100vw, 1100px) - 420px) / var(--cols)), calc((100vh - 410px) / var(--rows)))); display: grid; grid-template-columns: repeat(var(--cols), var(--cell)); grid-template-rows: repeat(var(--rows), var(--cell)); gap: 2px; }
.cw-cell { position: relative; display: block; border-radius: 5px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--gold); transition: background .15s; }
.cw-cell input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6% 0 0; border: 0; border-radius: 5px; background: transparent; color: var(--heading); font: 700 calc(var(--cell) * .5)/1 var(--serif); text-align: center; caret-color: transparent; cursor: pointer; outline: none; -webkit-appearance: none; appearance: none; }
.cw-num { position: absolute; top: 1px; left: 3px; z-index: 1; font-size: max(8px, calc(var(--cell) * .24)); font-weight: 700; line-height: 1.1; color: var(--gold-dark); pointer-events: none; }
.cw-cell.is-word { background: var(--gold-light); }
.cw-cell.is-active { background: var(--gold); box-shadow: inset 0 0 0 2px var(--gold-dark); }
.cw-cell.is-active input, .cw-cell.is-active .cw-num { color: var(--on-accent); }
.cw-cell.is-wrong { box-shadow: inset 0 0 0 2px #c0392b; }
.cw-cell.is-wrong input { color: #c0392b; }
.cw-cell.is-right input { color: #2e7d32; }
.is-solved .cw-cell { background: var(--gold-light); box-shadow: inset 0 0 0 1.5px var(--gold-dark); }
.is-solved .cw-cell input { color: var(--heading); }
.cw-flag { border-radius: 5px; background: linear-gradient(#d90012 0 33.3%, #0033a0 0 66.6%, #f2a800 0); box-shadow: inset 0 0 0 1.5px var(--gold); }
/* clues */
.cw-clues { display: grid; gap: 22px; }
.cw-list-title { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-light); font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--gold-dark); }
.cw-list ol { margin: 0; padding: 0; list-style: none; }
.cw-list button { display: flex; gap: 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; font-size: .9rem; line-height: 1.4; text-align: left; cursor: pointer; }
.cw-list button b { flex: none; min-width: 1.8em; color: var(--gold-dark); }
.cw-list button:hover { background: var(--cream-2); }
.cw-list button.is-active { background: var(--gold-light); color: var(--heading); }
/* on-screen Armenian keyboard */
.cw-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin: 18px auto 0; max-width: 640px; }
.cw-keys button { min-width: 38px; height: 40px; padding: 0 8px; border: 1px solid var(--gold-light); border-radius: 8px; background: var(--surface); color: var(--heading); font: 600 1.05rem/1 var(--serif); cursor: pointer; transition: background .15s; }
.cw-keys button:hover { background: var(--cream-2); }
.cw-keys button:active { background: var(--gold); color: var(--on-accent); }
.cw-keys .cw-key-wide { min-width: 64px; }
.cw-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.cw-btn { padding: 10px 18px; border: 1px solid var(--gold); border-radius: 999px; background: none; color: var(--gold-dark); font: 600 .9rem/1.2 var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.cw-btn:hover { background: var(--cream-2); }
.cw-btn-main { background: var(--band); border-color: var(--band); color: var(--on-band); }
.cw-btn-main:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.cw-done { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; padding: 16px; border-radius: var(--radius); background: var(--gold-light); color: var(--heading); font-size: 1.02rem; }
.cw-done[hidden] { display: none; }
.cw-done-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--band); color: var(--on-band); font-weight: 700; }
.cw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--gold-light); font-size: .85rem; line-height: 1.5; color: var(--muted); }
.cw-foot a { color: var(--gold-dark); font-weight: 600; }
@media (max-width: 960px) {
	.cw-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cw-grid { --cell: max(24px, min(40px, calc((100vw - 76px) / var(--cols)), calc((100vh - 410px) / var(--rows)))); }
}
@media (max-width: 600px) {
	/* the whole grid fits the screen width; only a very wide one (cells under 22px) scrolls sideways */
	.cw-board { padding: 4px; }
	.cw-grid { --cell: clamp(22px, calc((100vw - 32px - 10px - 1px * (var(--cols) - 1)) / var(--cols)), 40px); gap: 1px; }
	.cw-num { font-size: max(7px, calc(var(--cell) * .26)); left: 2px; }
	/* clue + keyboard stay at the bottom of the screen while the grid is in view */
	.cw-dock { margin: 12px -16px 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 0; }
	.cw-dock .cw-bar { margin-bottom: 8px; padding: 6px; gap: 6px; font-size: .92rem; line-height: 1.3; }
	.cw-dock .cw-keys { grid-template-columns: repeat(10, minmax(0, 1fr)); }
	.cw-dock .cw-keys button, .cw-dock .cw-keys .cw-key-wide { height: 42px; font-size: 1.1rem; touch-action: manipulation; }
	.cw-dock .cw-actions { gap: 4px; margin-top: 6px; }
	.cw-dock .cw-btn { padding: 6px 2px; font-size: .72rem; line-height: 1.15; touch-action: manipulation; }
	.cw-cell, .cw-nav { touch-action: manipulation; }
}

/* ===== Homepage: "Մեր հեղինակները" (shortcode diaspora_authors) ===== */
.authors { background: var(--surface); border-block: 1px solid var(--gold-light); scroll-margin-top: 60px; }
.authors-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.authors-stats span { padding: 6px 16px; border-radius: 999px; background: var(--cream-2); border: 1px solid var(--gold-light); color: var(--muted); font-size: .9rem; }
.authors-stats b { color: var(--heading); font-family: var(--serif); font-size: 1.1rem; margin-right: 4px; }
.authors-search { width: 100%; max-width: 420px; margin: 0 0 24px; padding: 12px 18px; border: 1.5px solid var(--gold-light); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.authors-search:focus { outline: none; border-color: var(--gold); }
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.authors-grid > li { margin: 0; min-width: 0; }
.authors-block:not(.show-all) .author.is-extra { display: none; }
.author[hidden] { display: none !important; }
.author-card {
	display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 2px; align-items: center; align-content: center;
	width: 100%; height: 100%; padding: 14px 16px; text-align: start; cursor: pointer;
	background: var(--cream); border: 1px solid var(--gold-light); border-radius: var(--radius); color: var(--text); font: inherit;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.author-card:hover, .author-card:focus-visible { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 26px rgba(var(--shadow-rgb), .12); outline: none; }
.author-avatar { grid-row: 1 / 4; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--band); color: var(--on-band); font: 700 1.05rem var(--serif); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.author-name { font-family: var(--serif); font-weight: 700; color: var(--heading); line-height: 1.3; }
.author-count { font-size: .82rem; font-weight: 600; color: var(--gold-dark); }
.author-rubrics { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.authors-empty { color: var(--muted); }
.authors-more-wrap { margin: 26px 0 0; text-align: center; }
.authors-more { padding: 12px 26px; border-radius: 999px; border: 1.5px solid var(--gold); background: transparent; color: var(--gold-dark); font: 600 .95rem var(--sans); cursor: pointer; transition: .2s; }
.authors-more:hover { background: var(--gold); color: var(--on-accent); }
.author-dialog { width: min(640px, calc(100% - 32px)); max-height: min(80vh, 720px); padding: 28px 28px 24px; border: 1px solid var(--gold-light); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.author-dialog::backdrop { background: rgba(10, 15, 5, .55); }
.author-dialog h3 { margin: 0 40px 6px 0; font-size: 1.4rem; }
.author-dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-light); background: var(--cream); color: var(--heading); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.author-dialog-close:hover { background: var(--gold); color: var(--on-accent); }
.author-dialog .author-page { margin: 0 0 14px; }
.author-dialog .author-page a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.author-dialog ol { margin: 0; padding: 0; list-style: none; counter-reset: work; }
.author-dialog li { counter-increment: work; position: relative; padding: 12px 0 12px 38px; border-top: 1px solid var(--gold-light); }
.author-dialog li::before { content: counter(work); position: absolute; left: 0; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); color: var(--gold-dark); font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.author-dialog li a { color: var(--heading); font-weight: 600; text-decoration: none; }
.author-dialog li a:hover { text-decoration: underline; }
.author-dialog li small { display: block; margin-top: 3px; color: var(--muted); font-size: .8rem; }
@media (max-width: 600px) {
	.authors-grid { grid-template-columns: 1fr; gap: 10px; }
	.author-dialog { padding: 22px 18px 18px; }
}

/* ===== No 4 article layout (see NO4-RULES.md in the site folder) ===== */
/* paragraphs: indented first line (tab), justified, no space between them */
.issue-no-4.story-v2 .story-content p:not(.story-kicker, .is-caption, .is-signoff, .is-verse, .story-link, .has-text-align-center, .has-text-align-right, .n4-stanza, .is-question) { text-indent: 1.6em; text-align: justify; hyphens: auto; margin-top: 0 !important; margin-bottom: 0 !important; }
.issue-no-4.story-v2 .story-content p.is-first::first-letter { float: none; margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; color: inherit; }
/* 10px between pictures and text */
.issue-no-4.story-v2 .story-content > :is(.wp-block-image, .wp-block-gallery),
.issue-no-4.story-v2 .story-intro .wp-block-image { margin-top: 10px !important; margin-bottom: 10px !important; }
.issue-no-4.story-v2 .story-intro { margin-bottom: 0 !important; }
.issue-no-4.story-v2 .story-content p.is-signoff { margin-top: 10px !important; }
/* titles centered in the middle */
.issue-no-4 .member-hero .member-name,
.issue-no-4 .story-content :is(h1, h2, h3, h4, h5, h6) { text-align: center !important; }
/* No 4: poems in stanzas (one paragraph per stanza, lines with <br>), subheadings, separators between parts */
.issue-no-4.story-v2 .story-content p.n4-stanza { text-indent: 0 !important; text-align: left !important; line-height: 1.7; margin: 0 auto 1.1em !important; }
.issue-no-4.story-v2 .story-content p.n4-sub { text-indent: 0 !important; margin-top: 1.3em !important; margin-bottom: .6em !important; }
.issue-no-4.story-v2 .story-content p.n4-poem-sign { text-indent: 0 !important; margin: .2em auto 1.2em !important; }
.issue-no-4.story-v2 .story-content hr.n4-sep { margin-top: 1.4em !important; margin-bottom: 1.4em !important; }
/* No 4: interview questions are bold, without the big «Հ.» in front */
.issue-no-4.story-v2 .story-qa > .is-question::before { content: none; display: none; }
.issue-no-4.story-v2 .story-qa > .is-question { font-weight: 700; }
.issue-no-4.story-v2 .story-qa > .is-question { text-align: justify; text-indent: 0; hyphens: auto; } /* justified like the text (editors, 2026-11-24) */
/* No 4: photos inside the text alternate sides (n4-right) */
.issue-no-4.story-v2 .story-content:not(:has(.story-qa)) > .wp-block-image.n4-right { float: right; clear: right; margin: 8px 14px 40px 50px !important; }
/* No 4: the signature = name (bold) + its description (italic) in one block under the line */
.issue-no-4.story-v2 .story-content p.n4-sign { line-height: 1.6; }
.issue-no-4.story-v2 .story-content p.n4-sign strong { font-style: normal; font-weight: 700; color: var(--heading); }
.issue-no-4.story-v2 .story-content p.n4-sign em { font-size: .95em; }
.issue-no-4.story-v2 .story-content p.n4-sign + p.n4-sign { margin-top: .9em !important; }
/* No 4: every signature looks the same — a card per person (photo or initials, role, name), description under it, on the right under a line */
.issue-no-4.story-v2 .story-content > .n4-signature { clear: both; display: flex; flex-direction: column; align-items: flex-end; gap: 1.1em; margin: 2.4em 0 1.4em !important; padding-top: 1.4em; border-top: 1px solid var(--gold-light); max-width: none; }
.issue-no-4.story-v2 .story-content > .n4-signature ~ hr.wp-block-separator { display: none; }
.issue-no-4 .n4-person { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.issue-no-4 .n4-signature .author-card { display: inline-flex; align-items: center; gap: 12px; margin: 0 !important; padding: 8px 18px 8px 8px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: 999px; text-decoration: none; color: var(--heading); transition: box-shadow .2s, border-color .2s; text-align: left; }
.issue-no-4 .n4-signature a.author-card:hover { border-color: var(--gold); box-shadow: 0 8px 20px rgba(var(--shadow-rgb), .1); }
.issue-no-4 .n4-signature .author-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.issue-no-4 .n4-initials { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--cream-2, #f3ead6); color: var(--gold-dark); font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.issue-no-4 .n4-signature .author-card span { font-family: var(--serif); font-weight: 700; line-height: 1.2; }
.issue-no-4 .n4-signature .author-card small { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; color: var(--gold-dark); }
.issue-no-4.story-v2 .story-content .n4-sign-desc { margin: .5em 6px 0 !important; text-indent: 0 !important; text-align: right !important; font-size: .95rem !important; line-height: 1.55; color: var(--heading); max-width: 34em; }
.issue-no-4 .n4-signature .author-card { width: auto !important; max-width: 100%; align-self: flex-end; flex: none; min-height: 0; box-sizing: border-box; }
.issue-no-4.story-v2 .story-content .n4-signature .n4-sign-desc { border: 0 !important; padding: 0 !important; }
/* No 4 interviews: no line between the question-and-answer blocks, just space */
.issue-no-4.story-v2 .story-qa { border-top: 0 !important; padding-top: 0 !important; }
/* No 4 interviews: a normal gap between the question-and-answer blocks, only a little bigger than between paragraphs */
.issue-no-4.story-v2 .story-content .story-qa.story-qa { margin-top: 0 !important; margin-bottom: 1.1em !important; padding-top: 0 !important; padding-bottom: 0 !important; }
.issue-no-4.story-v2 .story-content :not(.story-qa) + .story-qa.story-qa { margin-top: 1.1em !important; }
.issue-no-4.story-v2 .story-qa .qa-answer > :first-child { margin-top: 0 !important; }
.issue-no-4.story-v2 .story-qa .qa-answer > :last-child { margin-bottom: 0 !important; }
/* No 4 interviews: the question right above its answer (one column like the rest of the text), so no empty space is left under long questions */
.issue-no-4.story-v2 .story-content .story-qa.story-qa { display: block !important; max-width: var(--measure) !important; margin-inline: auto !important; }
.issue-no-4.story-v2 .story-qa > .is-question { position: static !important; margin: 0 0 .35em !important; font-size: 1.12rem !important; line-height: 1.6 !important; }
/* No 4: no closing line under the signature, also on pages that have only pictures (the theme wraps the signature then) */
.issue-no-4.story-v2 .story-content > :has(.n4-signature) ~ hr.wp-block-separator { display: none; }
.issue-no-4.story-v2 .story-content .n4-signature .n4-sign-desc.is-lead { font-size: .95rem !important; font-style: normal; }

/* The newspaper is one journal (2026-11-24): the first article has no «previous», the last no «next» —
   an empty, invisible slot keeps the «all» link in the middle */
.member-nav-card.is-empty { visibility: hidden; border: 0; background: none; box-shadow: none; pointer-events: none; }

/* No 4 շնորհանդես (2026-11-24): the box shows the event poster — sharp and whole, not a blurred thumbnail —
   and sits at the top of the homepage on every screen (the copy theme.js puts under the header) */
.upcoming-b.is-poster .cover { width: min(440px, 46%); aspect-ratio: auto; border-radius: 12px; }
.upcoming-b.is-poster .cover a { display: block; }
.upcoming-b.is-poster .cover img { height: auto; object-fit: contain; filter: none; transform: none; }
@media (min-width: 601px) {
	.upcoming-b.is-poster.is-top { display: flex; width: min(1180px, 100% - 32px); margin: 24px auto 0 !important; }
	.upcoming-b.is-poster.is-original { display: none; }
}
@media (max-width: 600px) {
	.upcoming-b.is-poster { flex-direction: column; align-items: stretch; }
	.upcoming-b.is-poster .cover { display: block; width: 100%; }
}

/* ===== Homepage: the Մատյան calendar in short (2026-11-24) =====
   left: the next memorable day (big card) + the three after it; right: the months, current month first, as a slider */
.home-calendar { background: linear-gradient(180deg, var(--cream) 0%, transparent 100%); }
.home-cal { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 64px; align-items: start; }
.home-cal-days { display: flex; flex-direction: column; gap: 10px; }
.home-cal .next-day { margin: 0; animation: cal-glow 4s ease-in-out infinite; }
@keyframes cal-glow { 0%, 100% { box-shadow: 0 8px 22px rgba(var(--shadow-rgb), .12); } 50% { box-shadow: 0 14px 34px rgba(var(--shadow-rgb), .24); } }
.home-cal-sub { margin: 8px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.home-cal-list { display: flex; flex-direction: column; gap: 8px; }
.home-cal-list .day-item { padding: 8px 12px; }
.home-cal-list .day-date { width: 70px; }
.home-cal-list .day-date b { font-size: 1.2rem; }
.home-cal-list .day-item.is-holiday .day-date { box-shadow: inset 3px 0 0 var(--holiday); }
.home-cal-list .day-item.is-mourning .day-date { box-shadow: inset 3px 0 0 var(--mourning); }
.cal-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.cal-legend span { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 4px; }
.cal-legend .is-holiday { background: var(--holiday); }
.cal-legend .is-mourning { background: var(--mourning); }
.months { --per: 3; --gap: 16px; }
.home-cal-months .cal-month { background: var(--surface); transition: transform .25s, box-shadow .25s; }
.home-cal-months .cal-month:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .12); }
.home-cal-months .track > .cal-month:first-child { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
@media (max-width: 1100px) { .months { --per: 2; } }
@media (max-width: 900px) {
	.home-cal { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .home-cal .next-day { animation: none; } }

/* ===== Greetings as moving cards (2026-11-24) =====
   the front card floats gently; the cards before and after it peek out, tilted, and are links to themselves;
   the cards turn by themselves (the long dot fills up = the timer) and stop while the reader is busy */
.quote { position: relative; overflow: hidden; background:
	radial-gradient(600px 300px at 12% 20%, rgba(var(--shadow-rgb), .05), transparent 70%),
	radial-gradient(500px 260px at 88% 80%, rgba(var(--shadow-rgb), .06), transparent 70%); }
.quote-slider.is-deck { max-width: 1120px; padding-inline: 0; }
.quote-slider.is-deck > .wp-block-quote { position: relative; box-sizing: border-box; width: min(760px, 100%); margin: 0 auto; padding: 46px 48px 34px;
	background: var(--surface); border: 1px solid var(--gold-light); border-radius: 22px; box-shadow: 0 18px 50px rgba(var(--shadow-rgb), .14);
	transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .6s ease, filter .6s ease; }
.quote-slider.is-deck > .wp-block-quote + .wp-block-quote { margin-top: 0; }
.quote-slider.is-deck > .wp-block-quote::before { content: "\201C"; position: absolute; top: -6px; left: 26px; font-family: var(--serif); font-size: 6.5rem; line-height: 1; color: var(--gold); opacity: .3; pointer-events: none; }
/* the cards that are not in front: stacked behind it, hidden */
.quote-slider.is-ready.is-deck > .wp-block-quote:not(.is-active) { display: block; position: absolute; top: 0; left: 50%; height: var(--stage-h, 100%); overflow: hidden;
	opacity: 0; pointer-events: none; transform: translateX(-50%) scale(.78); z-index: 0;
	-webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.quote-slider.is-ready.is-deck > .wp-block-quote.is-prev { opacity: .5; pointer-events: auto; cursor: pointer; filter: saturate(.6) blur(.6px); transform: translateX(calc(-50% - 56%)) scale(.84) rotate(-4deg); z-index: 1; }
.quote-slider.is-ready.is-deck > .wp-block-quote.is-next { opacity: .5; pointer-events: auto; cursor: pointer; filter: saturate(.6) blur(.6px); transform: translateX(calc(-50% + 56%)) scale(.84) rotate(4deg); z-index: 1; }
.quote-slider.is-ready.is-deck > .wp-block-quote.is-prev:hover,
.quote-slider.is-ready.is-deck > .wp-block-quote.is-next:hover { opacity: .75; filter: none; }
.quote-slider.is-ready.is-deck > .wp-block-quote.is-active { z-index: 2; animation: quote-in .6s ease, card-float 7s ease-in-out .6s infinite; }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* the author's badge */
.quote-avatar { display: grid; place-items: center; width: 54px; height: 54px; margin: 6px auto 10px; border-radius: 50%;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--on-accent, #fff);
	font-family: var(--serif); font-style: normal; font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; box-shadow: 0 6px 16px rgba(var(--shadow-rgb), .2); }
.quote .wp-block-quote cite { display: block; font-style: normal; }
/* the buttons and dots under the cards; the long dot fills up while the card is shown */
.quote-slider.is-deck .quote-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; position: relative; z-index: 3; }
.quote-slider.is-deck .quote-nav .quote-dots { margin-top: 0; }
.quote-slider.is-deck .slider-btn { position: static; transform: none; }
.quote-slider.is-deck .quote-dots button { transition: width .3s, background .3s; }
.quote-slider.is-deck .quote-dots button[aria-current="true"] { position: relative; overflow: hidden; width: 38px; border-radius: 6px; transform: none; background: var(--gold-light); }
.quote-slider.is-deck .quote-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--gold); }
.quote-slider.is-deck.is-playing .quote-dots button[aria-current="true"]::after { transform-origin: left; animation: dot-fill var(--autoplay, 9s) linear forwards; }
.quote-slider.is-deck.is-paused .quote-dots button[aria-current="true"]::after { animation-play-state: paused; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) {
	.quote-slider.is-ready.is-deck > .wp-block-quote.is-prev,
	.quote-slider.is-ready.is-deck > .wp-block-quote.is-next { opacity: 0; pointer-events: none; }
	.quote-slider.is-deck > .wp-block-quote { padding: 40px 22px 26px; border-radius: 18px; }
	.quote-slider.is-deck > .wp-block-quote::before { font-size: 5rem; left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.quote-slider.is-ready.is-deck > .wp-block-quote { transition: none; }
	.quote-slider.is-ready.is-deck > .wp-block-quote.is-active { animation: none; }
}
/* (2026-11-24, later) the homepage shows the whole year calendar only; its months lift a little on hover */
.home-cal-full .cal-month { background: var(--surface); transition: transform .25s, box-shadow .25s; }
.home-cal-full .cal-month:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(var(--shadow-rgb), .12); }
/* (2026-11-24, smaller) the Մատյան calendar beside «Վերջին գրառումները»: one month, ‹ › through the year */
.news-cal { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.news-cal .cards { --per: 3; }
.mini-cal { position: relative; padding: 14px 16px 12px; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(var(--shadow-rgb), .08); }
.mini-cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.mini-cal-head .eyebrow { margin: 0 auto 0 0; }
.mini-cal-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--gold-light); border-radius: 50%; background: var(--cream); color: var(--heading); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.mini-cal-btn:hover { border-color: var(--gold); background: var(--cream-2); }
.mini-cal .cal-month { display: none; padding: 0; background: none; border: 0; }
.mini-cal .cal-month.is-shown { display: block; animation: quote-in .3s ease; }
.mini-cal .cal-name { margin: -26px 0 8px; font-size: 1rem; pointer-events: none; }
.mini-cal .cal-day { font-size: .75rem; }
.mini-cal-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; font-size: .78rem; }
.mini-cal-foot a { font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.mini-cal-foot .cal-legend { margin: 0; font-size: .72rem; }
@media (max-width: 1000px) { .news-cal { grid-template-columns: minmax(0, 1fr); } .mini-cal { max-width: 360px; } }
.mini-cal .year-calendar { display: block; }
.news-cal { gap: 56px; }
.mini-cal-head { flex-wrap: wrap; justify-content: space-between; }
.mini-cal-head .eyebrow { flex-basis: 100%; margin: 0 0 10px; }
.mini-cal .cal-name { margin: -27px 34px 10px; }
/* (2026-11-24, tiny year) the whole year next to «Վերջին գրառումները»: 12 small months, 3 per row, no weekday names */
.news-cal { grid-template-columns: minmax(0, 1fr) 380px; }
.mini-cal.is-year { padding: 14px 16px 12px; }
.mini-cal.is-year .mini-cal-head .eyebrow { margin-bottom: 8px; }
.mini-cal.is-year .year-calendar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.mini-cal.is-year .cal-month { display: block; padding: 0; background: none; border: 0; box-shadow: none; animation: none; }
.mini-cal.is-year .cal-month:hover { transform: none; box-shadow: none; }
.mini-cal.is-year .cal-name { margin: 0 0 3px; font-size: .72rem; text-align: left; pointer-events: auto; }
.mini-cal.is-year .cal-wd { display: none; }
.mini-cal.is-year .cal-grid { gap: 1px; }
.mini-cal.is-year .cal-day { font-size: .52rem; line-height: 1; }
.mini-cal.is-year .cal-day.is-marked:hover { transform: scale(1.5); position: relative; z-index: 1; }
.mini-cal.is-year .cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--heading); }
@media (max-width: 1000px) { .mini-cal.is-year { max-width: 420px; } }
/* (2026-11-24) «Վերջին գրառումները» as square tiles beside the tiny year calendar: on wide screens a 3 × 2 grid
   (no sideways scrolling); the picture fills the square, the date and title sit on a dark gradient at the bottom */
.news-cal .card { position: relative; aspect-ratio: 1; height: auto; display: block; border: 0; background: var(--band); }
.news-cal .card .wp-block-post-featured-image { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; }
.news-cal .card .wp-block-post-featured-image img { transition: transform .5s ease; }
.news-cal .card:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.news-cal .card .wp-block-post-featured-image.is-placeholder img { transform: none; }
.news-cal .card-body { position: absolute; inset: auto 0 0 0; gap: 4px; padding: 40px 12px 11px; pointer-events: none;
	background: linear-gradient(to top, rgba(20, 18, 12, .88) 0%, rgba(20, 18, 12, .55) 55%, transparent 100%); }
.news-cal .card-body a { pointer-events: auto; }
.news-cal .card-body .wp-block-post-date, .news-cal .card-body time { font-size: .68rem !important; color: rgba(255, 255, 255, .8) !important; }
.news-cal .card-body .wp-block-post-title { font-size: .86rem !important; line-height: 1.3 !important; }
.news-cal .card-body .wp-block-post-title a { color: #fff !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 801px) {
	.news-cal .slider > .slider-btn { display: none; }
	.news-cal .track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto; gap: 14px; overflow: visible; scroll-snap-type: none; padding: 0; margin: 0; }
	.news-cal .track > :nth-child(n+7) { display: none; }
}
.news-cal > * { margin-block: 0 !important; }
.news-cal { align-items: stretch; }
.news-cal .mini-cal.is-year { display: flex; flex-direction: column; justify-content: space-between; }
/* (2026-11-24) the news tiles like «Մեր թիմը» cards: photo on top, the title in a band under it (no date);
   4 × 2 cards that stretch to exactly the calendar's height */
@media (min-width: 801px) {
	.news-cal .wp-block-query, .news-cal .wp-block-query > .track { height: 100%; }
	.news-cal .track { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.news-cal .track > :nth-child(n+7) { display: block; }
	.news-cal .track > :nth-child(n+9) { display: none; }
	.news-cal .track > li { height: 100%; min-height: 0; }
}
.news-cal .card { aspect-ratio: auto; height: 100%; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gold-light); }
.news-cal .card .wp-block-post-featured-image { position: relative; inset: auto; flex: 1 1 auto; min-height: 90px; height: auto; }
.news-cal .card-body { position: static; inset: auto; flex: 0 0 auto; padding: 9px 10px 10px !important; background: none; text-align: center; pointer-events: auto; }
.news-cal .card-body .wp-block-post-date { display: none; }
.news-cal .card-body .wp-block-post-title { font-size: .8rem !important; line-height: 1.3 !important; }
.news-cal .card-body .wp-block-post-title a { color: var(--heading) !important; -webkit-line-clamp: 2; }
.news-cal .card-body .wp-block-post-title a::before { content: ""; position: absolute; inset: 0; } /* the whole card is clickable */
.news-cal .card-body::after { content: "Կարդալ →"; display: block; margin-top: 4px; font-size: .7rem; font-weight: 600; color: var(--gold-dark); }
/* (2026-11-24) 2 × 2 square cards: the news and the calendar take half of the width each */
.news-cal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
@media (min-width: 801px) {
	.news-cal .wp-block-query, .news-cal .wp-block-query > .track { height: auto; }
	.news-cal .track { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; gap: 16px; }
	.news-cal .track > :nth-child(n+5) { display: none; }
	.news-cal .track > li { height: auto; }
}
.news-cal .card { aspect-ratio: 1; height: auto; }
.news-cal .card-body .wp-block-post-title { font-size: .92rem !important; }
.news-cal .card-body::after { font-size: .75rem; }
.mini-cal.is-year .cal-name { font-size: .8rem; }
.mini-cal.is-year .cal-day { font-size: .62rem; }
.mini-cal.is-year .year-calendar { gap: 12px 18px; }
@media (max-width: 1000px) { .news-cal { grid-template-columns: minmax(0, 1fr); } }
.mini-cal.is-year .year-calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.mini-cal.is-year .cal-day { font-size: .58rem; }
/* side by side down to 801px; only phones put the calendar under the articles */
@media (min-width: 801px) and (max-width: 1000px) {
	.news-cal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
	.mini-cal.is-year { max-width: none; }
	.mini-cal.is-year .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
	.mini-cal.is-year .cal-day { font-size: .55rem; }
}
/* (2026-11-24) 6 articles: 2 × 3 squares; the calendar 3 months per row (4 rows) so the two sides stay about the same height */
@media (min-width: 801px) {
	.news-cal .track > :nth-child(n+5) { display: block; }
	.news-cal .track > :nth-child(n+7) { display: none; }
	.mini-cal.is-year .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
	.mini-cal.is-year .cal-day { font-size: .62rem; }
	.mini-cal.is-year .cal-name { font-size: .82rem; margin-bottom: 4px; }
}

/* ===== Homepage «Թերթից» (2026-11-24): a wall of articles from every issue, 4 × 2; one card turns over every few seconds ===== */
.paper-picks { background: var(--cream); }
.picks-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; perspective: 1200px; }
.pick { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius);
	overflow: hidden; text-decoration: none; color: var(--heading); transition: transform .25s, box-shadow .25s; transform-style: preserve-3d; }
.pick:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .14); }
.pick-img { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--cream-2); }
.pick-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .5s; }
.pick:hover .pick-img img { transform: scale(1.05); }
.pick-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; text-align: center; }
.pick-body small { font-size: .7rem; font-weight: 600; color: var(--gold-dark); }
.pick-title { font-family: var(--serif); font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick.is-turning { animation: pick-turn .8s ease-in-out; }
@keyframes pick-turn { 0% { transform: rotateY(0); } 45% { transform: rotateY(90deg); opacity: .6; } 55% { transform: rotateY(-90deg); opacity: .6; } 100% { transform: rotateY(0); } }
.pick.is-dealt { animation: pick-deal .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pick-deal { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.picks-more { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 0; }
.picks-shuffle { padding: 10px 22px; border: 1px solid var(--gold); border-radius: 999px; background: var(--surface); color: var(--heading); font: inherit; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.picks-shuffle:hover { background: var(--gold); color: var(--on-accent, #fff); }
.picks-total { font-size: .8rem; color: var(--muted); }
@media (max-width: 1000px) { .picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .picks-grid > :nth-child(n+7) { display: none; } }
@media (max-width: 700px) { .picks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .picks-grid > :nth-child(n+7) { display: none; } .pick-title { font-size: .85rem; } }
@media (prefers-reduced-motion: reduce) { .pick.is-turning, .pick.is-dealt { animation: none; } }
/* phones / narrow screens: the calendar card full width under the articles, 3 months per row, each a real 7-column grid */
@media (max-width: 800px) {
	.news-cal { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.mini-cal.is-year { max-width: none; width: 100%; box-sizing: border-box; padding: 14px 12px 12px; }
	.mini-cal.is-year .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
	.mini-cal.is-year .cal-month { min-width: 0; }
	.mini-cal.is-year .cal-name { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
	.mini-cal.is-year .cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; }
	.mini-cal.is-year .cal-day { font-size: .56rem; aspect-ratio: 1; min-width: 0; overflow: hidden; }
}
@media (max-width: 800px) {
	.mini-cal.is-year .year-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
	.mini-cal.is-year .cal-name { font-size: .85rem; }
	.mini-cal.is-year .cal-grid { gap: 2px; }
	.mini-cal.is-year .cal-day { font-size: .68rem; }
}
/* phones: shorter — the card uses the slider's side space and shows 3 months per row (4 rows) */
@media (max-width: 800px) {
	.mini-cal.is-year { width: auto; margin-inline: -28px !important; padding: 12px 10px 10px; }
	.mini-cal.is-year .year-calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
	.mini-cal.is-year .cal-name { font-size: .74rem; margin-bottom: 3px; }
	.mini-cal.is-year .cal-grid { gap: 0; }
	.mini-cal.is-year .cal-day { font-size: .56rem; letter-spacing: -.02em; }
}
@media (max-width: 360px) { .mini-cal.is-year .cal-day { font-size: .5rem; } }
/* phones (2026-11-24): «Մեր հեղինակները» shows 4 authors, then «Տեսնել բոլոր …» (computers keep 12) */
@media (max-width: 700px) {
	.authors-block:not(.show-all) .authors-grid > .author:nth-child(n+5) { display: none; }
}
/* phones: only the front greeting card exists on the page (no side cards at all, so nothing can show through) */
@media (max-width: 900px) {
	.quote-slider.is-ready.is-deck > .wp-block-quote:not(.is-active) { display: none !important; }
}
/* phones (2026-11-24): a smaller presentation box — the 4 countdown boxes in one row, tighter text and spacing */
@media (max-width: 600px) {
	.upcoming-b.is-poster { gap: 10px; padding: 12px; }
	.upcoming-b.is-poster .soon-pill { font-size: .7rem; padding: 3px 10px; }
	.upcoming-b.is-poster h3 { font-size: .98rem; margin: 6px 0 2px; }
	.upcoming-b.is-poster .release { font-size: .78rem; margin-bottom: 8px; }
	.upcoming-b.is-poster .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
	.upcoming-b.is-poster .countdown div { padding: 5px 2px; }
	.upcoming-b.is-poster .countdown b { font-size: 1.05rem; }
	.upcoming-b.is-poster .countdown small { font-size: .6rem; }
}

/* ===== Մատյան → «Սցենարներ» (2026-11-25): groups (Ամանոր …) with their plays as cards; the play pages ===== */
.matyan-scripts { background: var(--surface); border-block: 1px solid var(--gold-light); }
.script-group + .script-group { margin-top: 34px; }
.script-group-title { margin: 0 0 16px; font-size: 1.35rem; }
.script-group-title a { color: var(--heading); text-decoration: none; }
.script-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.script-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 18px; border-radius: var(--radius); text-decoration: none; color: var(--heading);
	background: linear-gradient(160deg, var(--cream) 0%, var(--surface) 70%); border: 1px solid var(--gold-light); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.script-card::after { content: "❄"; position: absolute; right: 14px; top: 8px; font-size: 2.6rem; color: var(--gold); opacity: .15; }
.script-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(var(--shadow-rgb), .14); }
.script-icon { font-size: 1.8rem; line-height: 1; }
.script-title { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.script-sub { font-style: italic; color: var(--muted); font-size: .92rem; }
.script-meta { font-size: .8rem; color: var(--gold-dark); font-weight: 600; margin-top: auto; padding-top: 8px; }
.script-more { font-size: .85rem; font-weight: 700; color: var(--gold-dark); }
/* the play pages */
.story-content .play-subtitle { margin-top: -6px !important; color: var(--muted); }
.story-content .play-cast-title { margin-top: 18px !important; margin-bottom: 4px !important; }
.story-content .play-cast { line-height: 1.75; }
.story-content .play-scene { margin-top: 1.6em !important; letter-spacing: .03em; color: var(--heading); }
.story-content .play-verse { padding-left: 1.2em; border-left: 3px solid var(--gold-light); font-style: italic; }
.story-content .play-direction { color: var(--muted); }

/* (2026-11-25) header: the slogan under «Կրթամշակութային թերթ»; both lines also on phones (smaller) */
.brand-slogan { margin: 2px 0 0 !important; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: .78rem; line-height: 1.2; color: var(--gold-dark); }
@media (max-width: 900px) {
	.brand-sub { display: block !important; font-size: .66rem; margin-top: 1px !important; white-space: nowrap; }
	.brand-slogan { font-size: .68rem; white-space: nowrap; }
}
@media (max-width: 380px) { .brand-sub, .brand-slogan { font-size: .6rem; } }

/* (2026-11-25) presentation box: a clear «Կարդալ նոր համարը» button under the countdown */
.upcoming-b .poster-cta { margin: 16px 0 0 !important; }
.upcoming-b .poster-cta a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: 999px; background: var(--band-accent, var(--gold)); color: var(--band, #1f2a12);
	font-weight: 800; font-size: 1rem; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); animation: cta-pulse 2.4s ease-in-out infinite; }
.upcoming-b .poster-cta a:hover { transform: translateY(-2px); animation: none; }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 0 rgba(255, 220, 140, .55); } 60% { box-shadow: 0 8px 22px rgba(0, 0, 0, .25), 0 0 0 12px rgba(255, 220, 140, 0); } }
@media (max-width: 600px) { .upcoming-b .poster-cta { margin-top: 10px !important; } .upcoming-b .poster-cta a { display: flex; justify-content: center; padding: 11px 18px; font-size: .95rem; } }
@media (prefers-reduced-motion: reduce) { .upcoming-b .poster-cta a { animation: none; } }

/* ===== Մատյան (2026-11-25): 3 equal parts at the top — Օրացույց, Սցենարներ, Կրթական խաղեր — each jumps to its section ===== */
html { scroll-behavior: smooth; }
.matyan-days, .matyan-scripts, .matyan-games { scroll-margin-top: 90px; }
.site-main section.matyan-top { padding: 0 0 clamp(28px, 4vw, 44px); margin-top: -18px; }
.matyan-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.matyan-part { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 18px 20px; text-align: center;
	background: var(--surface); border: 1px solid var(--gold-light); border-radius: var(--radius); text-decoration: none; color: var(--heading);
	box-shadow: 0 10px 26px rgba(var(--shadow-rgb), .08); transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.matyan-part::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); }
.matyan-part:nth-child(2)::before { background: var(--holiday); }
.matyan-part:nth-child(3)::before { background: var(--band); }
.matyan-part:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 36px rgba(var(--shadow-rgb), .15); }
.matyan-part-icon { font-size: 2.4rem; line-height: 1.1; transition: transform .3s; }
.matyan-part:hover .matyan-part-icon { transform: scale(1.12) rotate(-4deg); }
.matyan-part-title { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; line-height: 1.2; }
.matyan-part-text { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.matyan-part-count { margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--cream-2); font-size: .75rem; font-weight: 700; color: var(--gold-dark); }
.matyan-games { background: var(--cream); }
@media (max-width: 700px) {
	.matyan-parts { gap: 8px; }
	.matyan-part { padding: 14px 6px 12px; gap: 4px; }
	.matyan-part-icon { font-size: 1.7rem; }
	.matyan-part-title { font-size: .86rem; }
	.matyan-part-text { display: none; }
	.matyan-part-count { font-size: .64rem; padding: 2px 8px; }
}
@media (max-width: 700px) { .matyan-part-count .m-hide { display: none; } .matyan-part-count { white-space: nowrap; } }
.games-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.games-grid .article-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
@media (max-width: 900px) { .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* 2026-11-25: «Կրթամշակութային թերթ» bigger than the slogan */
.brand-sub { font-size: .9rem; font-weight: 600; color: var(--heading); }
.brand-slogan { font-size: .74rem; }
@media (max-width: 600px) { .brand-sub { font-size: .8rem !important; } .brand-slogan { font-size: .64rem; } }
@media (max-width: 380px) { .brand-sub { font-size: .72rem !important; } .brand-slogan { font-size: .58rem; } }

/* ===== Homepage end (2026-11-25): «Մեր ընթերցողները» — live Jetpack Stats (all-time views + visitors of the whole site).
   Hidden when Jetpack gives no numbers (e.g. in Studio, where Stats is not connected). ===== */
.site-main section.site-stats { padding: clamp(36px, 5vw, 60px) 0; background: var(--cream-2); }
.site-stats:not(:has(.jetpack-blog-stats)) { display: none; }
.site-stats h2 { margin-bottom: 22px; }
.stats-row { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.stats-row .jetpack-blog-stats { flex: 0 1 240px; margin: 0 !important; padding: 22px 16px; text-align: center; background: var(--surface);
	border: 1px solid var(--gold-light); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(var(--shadow-rgb), .08); position: relative; overflow: hidden; }
.stats-row .jetpack-blog-stats::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); }
.stats-row .is-visitors::before { background: var(--holiday); }
.stats-row .jetpack-blog-stats p { margin: 0; font-size: .95rem; color: var(--muted); }
.stats-row .stat-num { display: block; font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: var(--heading); margin-bottom: 4px; }
@media (max-width: 600px) { .stats-row { gap: 10px; } .stats-row .jetpack-blog-stats { flex: 1 1 0; padding: 16px 8px; } }

/* 2026-11-27 (the user): «ՍՓՅՈՒՌՔԻ ԴՊՐՈՑ» bigger, «Կրթամշակութային թերթ» smaller (still above the slogan in size) */
.brand-name { font-size: 1.65rem; }
.brand-sub { font-size: .78rem; }
.brand-slogan { font-size: .7rem; }
@media (max-width: 600px) {
	.brand-name { font-size: 1.02rem; white-space: nowrap; }
	.brand-sub { font-size: .66rem !important; }
	.brand-slogan { font-size: .58rem; }
}
@media (max-width: 380px) {
	.brand-name { font-size: .9rem; }
	.brand-sub { font-size: .6rem !important; }
	.brand-slogan { font-size: .54rem; }
}

/* links doc 2026-11-29: a word with «և» inside is not hyphenated by the browser (it would break «հետև-անք»; the right break «հետե-վանք» changes the letters) */
.n4-nohy { -webkit-hyphens: manual; hyphens: manual; }
/* No 4 «Խաչբառ-4» (2026-11-29): the embedded crossword fills the article width; theme.js sets its height */
.n4-embed { margin: 10px 0; width: min(1180px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%); }
.n4-embed-frame { display: block; width: 100%; height: 1600px; border: 0; border-radius: 12px; overflow: hidden; background: #fff; }
