/*
Theme Name:  PulsR
Theme URI:   https://pulsr.rs/
Description: Child theme of Astra for PulsR - intelligence, research, consulting. Presentation layer only: content types live in the pulsr-core plugin so they survive a theme change.
Author:      PulsR
Author URI:  https://pulsr.rs/
Template:    astra
Version:     1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.1
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pulsr
Tags:        research, business, one-column, custom-colors, custom-menu, translation-ready
*/

/* -----------------------------------------------------------------------------
 * Brand tokens
 *
 * These MIRROR the Astra global palette (astra-settings -> global-color-palette)
 * so custom CSS can reference brand colours by meaning instead of by hex.
 * Astra remains the source of truth: it emits --ast-global-color-N itself, and
 * these aliases simply point at those variables. Change colours in
 * Appearance > Customize, never here.
 * -------------------------------------------------------------------------- */
:root {
	--pulsr-accent:        var(--ast-global-color-0); /* #FF6210 primary orange   */
	--pulsr-accent-hover:  var(--ast-global-color-1); /* #F15808 hover            */
	--pulsr-heading:       var(--ast-global-color-2); /* #1C0D0A near-black       */
	--pulsr-text:          var(--ast-global-color-3); /* #353535 body text        */
	--pulsr-surface-muted: var(--ast-global-color-4); /* #f4f4f4 light background */
	--pulsr-surface:       var(--ast-global-color-5); /* #FFFFFF                  */
	--pulsr-border:        var(--ast-global-color-6); /* #E5D7D1 warm border      */
	--pulsr-ink:           var(--ast-global-color-7); /* #140B06 deepest          */
	--pulsr-ink-soft:      var(--ast-global-color-8); /* #222222                  */

	/* Semantic state colour (not in the Astra palette): "open / publicly
	   accessible". Used by the access badges. */
	--pulsr-ok: #1E7B45;

	--pulsr-font-heading: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--pulsr-font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	--pulsr-measure:  68ch;   /* comfortable reading width for findings prose */
	--pulsr-radius:   4px;
	--pulsr-space:    clamp(1rem, 2.5vw, 2rem);
}

/* -----------------------------------------------------------------------------
 * Flat by decision - no drop shadows anywhere
 *
 * (User instruction, 2 Sep 2026.) Our own panels and cards simply stopped
 * declaring shadows; these are the ones that come from ASTRA, which greps of our
 * own files could never find. They were located by reading computed styles in
 * the browser rather than by searching stylesheets:
 *
 *   - a shadow on EVERY button site-wide, from Astra's global
 *     `button, .ast-button, .button, input[type=submit]` rule;
 *   - the archive cards on /nalazi/ and /pi-izvestaji/, from Astra's dynamic
 *     `.ast-blog-layout-4-grid .ast-article-inner` (printed inline, so it is
 *     not in any file on disk);
 *   - Contact Form 7's file input.
 *
 * TWO THINGS THIS MUST NOT DO
 * ---------------------------
 * 1. It must not touch FOCUS. Astra draws input and textarea focus rings with
 *    `box-shadow` on `:focus` selectors, so removing those would delete a
 *    keyboard user's only indication of where they are. Every selector below is
 *    a RESTING state, and because `input:focus` outranks `input`, Astra's focus
 *    shadows keep working untouched. Never add `:focus` to this list.
 * 2. It must not catch the accent bar on submenu items, which is an inset
 *    box-shadow used as a BORDER that cannot shift the layout - a solid 3px
 *    rule, not a shadow. It is scoped tightly enough not to be matched here.
 *
 * `body` is prepended purely for specificity: Astra prints some of these rules
 * inline in the head, where an equal-specificity rule of ours would lose on
 * source order no matter which file it sits in.
 * -------------------------------------------------------------------------- */
body button,
body .ast-button,
body .button,
body .ast-custom-button,
body input[type='button'],
body input[type='reset'],
body input[type='submit'],
body .wp-block-button__link {
	box-shadow: none;
}

body .ast-blog-layout-4-grid .ast-article-inner,
body .ast-article-inner,
body .ast-article-post {
	box-shadow: none;
}

body .wpcf7 input[type='file'].wpcf7-form-control,
body .wpcf7 .wpcf7-form-control {
	box-shadow: none;
}

/* Astra puts a 30px glow on every figure and image inside a single article
   (`.ast-article-single figure, .ast-article-single img:not(figure img)`). On
   this site that means every HTML TABLE in a finding - and tables are how the
   numbers are published, by decision, so this was on the most important content
   on the site. Astra's own selectors are mirrored so the pair can be found. */
body .ast-article-single figure,
body .ast-article-single img:not(figure img) {
	box-shadow: none;
}

/* Astra also shadows form fields at rest. `input:focus` outranks `body input`,
   so Astra's focus shadows still apply - which is the point. */
body input[type='text'],
body input[type='number'],
body input[type='email'],
body input[type='url'],
body input[type='password'],
body input[type='search'],
body input[type='tel'],
body input[type='date'],
body select,
body textarea {
	box-shadow: none;
}

/* -----------------------------------------------------------------------------
 * Child styles start below.
 *
 * Scope: only what Astra's Customizer cannot express. Anything achievable in
 * Appearance > Customize belongs there, not here - it keeps 281 KB of settings
 * in one place and avoids specificity fights with Astra's inline CSS.
 * -------------------------------------------------------------------------- */

/* -----------------------------------------------------------------------------
 * Contact as the navigation's call to action
 *
 * Astra's header button was removed in favour of a menu item, because a button
 * element carries one global label and one global URL - wrong on a bilingual
 * site, where contact lives at /kontakt/ and /en/contact/. A menu item is
 * translated by Polylang for free.
 *
 * The item carries the class `pulsr-nav-cta`, set on the menu item itself, and
 * is styled as a button here. Selectors are scoped to the primary navigation so
 * this never leaks into the footer or mobile menus, where a button would look
 * out of place.
 * -------------------------------------------------------------------------- */
.ast-builder-menu .main-header-menu > .pulsr-nav-cta > .menu-link,
.ast-builder-menu .main-header-menu > .pulsr-nav-cta > a {
	background-color: var(--pulsr-accent);
	color: var(--pulsr-surface);
	border-radius: var(--pulsr-radius);
	padding-inline: 1.1em;
	margin-inline-start: 0.6em;
	line-height: 2.4;
	font-weight: 600;
	transition: background-color 120ms ease-in-out;
}

.ast-builder-menu .main-header-menu > .pulsr-nav-cta > .menu-link:hover,
.ast-builder-menu .main-header-menu > .pulsr-nav-cta > .menu-link:focus-visible,
.ast-builder-menu .main-header-menu > .pulsr-nav-cta > a:hover,
.ast-builder-menu .main-header-menu > .pulsr-nav-cta > a:focus-visible {
	background-color: var(--pulsr-accent-hover);
	color: var(--pulsr-surface);
}

/* Astra marks the current page in the menu; the CTA should not also turn into a
   "you are here" state, or it stops reading as a button. */
.ast-builder-menu .main-header-menu > .pulsr-nav-cta.current-menu-item > a {
	color: var(--pulsr-surface);
}

/* In the off-canvas menu the items are full-width rows, so a pill would look
   broken. Keep the accent as emphasis instead. */
.ast-mobile-popup-drawer .pulsr-nav-cta > .menu-link,
.ast-mobile-popup-drawer .pulsr-nav-cta > a {
	color: var(--pulsr-accent-hover);
	font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
	.ast-builder-menu .main-header-menu > .pulsr-nav-cta > a {
		transition: none;
	}
}

/* -----------------------------------------------------------------------------
 * Desktop services dropdown
 *
 * Astra ships no padding rule for desktop submenu links, so the six service
 * names sat almost touching each other with a hard rule between every row.
 * Rows that tight read as a dense list rather than a set of choices.
 *
 * The approach here: let SPACING separate the items rather than dividers. Six
 * items with room to breathe are easier to scan than six items fenced off from
 * one another, and it lets the panel stay quiet enough that the hover state is
 * the only thing that draws the eye.
 *
 * Service names are long ("Specijalizovana istrazivanja"), so the panel is given
 * a real minimum width and the text is allowed to wrap on a comfortable line
 * height instead of being forced onto one line.
 * -------------------------------------------------------------------------- */

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu {
	min-width: 17.5rem;
	padding-block: 0.4rem;
	background-color: var(--pulsr-surface);
	border: 1px solid var(--pulsr-border);
	/* Astra draws a 2px accent line on top; keep the brand cue but let the
	   panel's own border own the other three sides. */
	border-top: 2px solid var(--pulsr-accent);
	border-radius: 0 0 var(--pulsr-radius) var(--pulsr-radius);
	/* Flat by decision (2 Sep 2026). Explicitly none rather than merely absent:
	   Astra puts its OWN shadow on submenus, which ours was covering up all
	   along - dropping ours simply revealed it. The panel is separated from the
	   page by its border and the accent top rule. */
	box-shadow: none;
	/* Clip the item hover backgrounds to the rounded corners. */
	overflow: hidden;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-item {
	border: 0;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
	display: block;
	padding: 0.68rem 1.2rem;
	font-size: 0.94rem;
	line-height: 1.45;
	/* Long names wrap rather than stretching the panel off the screen. */
	white-space: normal;
	color: var(--pulsr-text);
	border: 0;
	/* The accent bar on hover is drawn with an inset shadow rather than a real
	   border, so nothing shifts sideways when it appears. */
	box-shadow: inset 0 0 0 0 var(--pulsr-accent);
	transition:
		background-color 120ms ease,
		color 120ms ease,
		box-shadow 120ms ease;
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link:hover,
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link:focus-visible,
.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-item.current-menu-item > .menu-link {
	background-color: var(--pulsr-surface-muted);
	color: var(--pulsr-heading);
	box-shadow: inset 3px 0 0 0 var(--pulsr-accent);
}

.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link:focus-visible {
	outline: 2px solid var(--pulsr-accent);
	outline-offset: -2px;
}

/* The parent stays visibly "open" while the panel is showing, so the pointer has
   an anchor and the relationship between trigger and panel is obvious. */
.ast-desktop .ast-builder-menu-1 .menu-item-has-children:hover > .menu-link {
	color: var(--pulsr-accent-hover);
}

/* NOTE: no margin between the trigger and the panel. A visual gap made with
   margin breaks the hover - the pointer crosses dead space on its way down and
   the menu closes before it arrives. If a gap is ever wanted, add transparent
   padding to the panel so the hoverable area stays continuous. */

@media (prefers-reduced-motion: reduce) {
	.ast-desktop .ast-builder-menu-1 .menu-item .sub-menu .menu-link {
		transition: none;
	}
}

/* -----------------------------------------------------------------------------
 * Footer (spec ch. 3.3)
 *
 * Four columns: services, legal, newsletter, contact + social. On a footer this
 * dense the risk is a wall of undifferentiated links, so the column headings do
 * the structural work - small, spaced, quiet - and the links sit at normal
 * reading size beneath them.
 *
 * The grid uses auto-fit with a minimum column width rather than fixed
 * breakpoints, so it collapses 4 -> 2 -> 1 on its own as the viewport narrows.
 * -------------------------------------------------------------------------- */
.pulsr-footer {
	padding-block: clamp(2.25rem, 5vw, 3.5rem);
	border-top: 1px solid var(--pulsr-border);
	background-color: var(--pulsr-surface-muted);
	color: var(--pulsr-text);
}

.pulsr-footer__inner {
	width: min(1200px, 100% - 3rem);
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 2.5rem 2rem;
	align-items: start;
}

/* Section labels, not headlines: they orient without competing with the links. */
.pulsr-footer__title {
	margin: 0 0 0.9rem;
	font-family: var(--pulsr-font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pulsr-heading);
}

.pulsr-footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
	font-size: 0.94rem;
	line-height: 1.45;
}

.pulsr-footer__list a,
.pulsr-footer__nap a {
	color: var(--pulsr-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 120ms ease, border-color 120ms ease;
}

.pulsr-footer__list a:hover,
.pulsr-footer__list a:focus-visible,
.pulsr-footer__nap a:hover,
.pulsr-footer__nap a:focus-visible {
	color: var(--pulsr-accent-hover);
	border-bottom-color: currentColor;
}

/* NAP must be readable and copyable - the point is that it matches the Google
   Business Profile exactly, so it should not be styled into italics or caps. */
.pulsr-footer__nap {
	font-style: normal;
	font-size: 0.94rem;
	line-height: 1.6;
}

.pulsr-footer__org {
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-footer__social {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	font-size: 0.88rem;
}

/* -----------------------------------------------------------------------------
 * Newsletter block
 *
 * Appears in the footer, at the end of each finding, and on the Political
 * Intelligence page - the strategy calls it the primary lead magnet and asks for
 * it in more than one place.
 *
 * Two treatments: quiet in the footer, where it is one column among four; and
 * boxed in content, where it has to read as an offer rather than as more prose.
 * -------------------------------------------------------------------------- */
.pulsr-newsletter__title {
	margin: 0 0 0.5rem;
	font-family: var(--pulsr-font-heading);
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-newsletter__blurb {
	margin: 0 0 0.9rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--pulsr-muted, var(--pulsr-text));
	max-width: 34ch;
}

.pulsr-newsletter--footer .pulsr-newsletter__title {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* In-content placement: boxed, with the accent rule so it separates cleanly
   from the article it follows. */
.pulsr-newsletter--finding,
.pulsr-newsletter--product,
.pulsr-newsletter--page {
	margin-block: clamp(2rem, 5vw, 3rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background-color: var(--pulsr-surface-muted);
	border: 1px solid var(--pulsr-border);
	border-left: 3px solid var(--pulsr-accent);
	border-radius: var(--pulsr-radius);
}

.pulsr-newsletter--finding .pulsr-newsletter__title,
.pulsr-newsletter--product .pulsr-newsletter__title,
.pulsr-newsletter--page .pulsr-newsletter__title {
	font-size: 1.15rem;
}

/* Keep the form on one line where there is room, stacked where there is not. */
.pulsr-newsletter form p {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: center;
	margin: 0;
}

.pulsr-newsletter input[type="email"] {
	flex: 1 1 14rem;
	min-width: 0;
}

.pulsr-newsletter .wpcf7-acceptance {
	flex-basis: 100%;
	font-size: 0.82rem;
	line-height: 1.45;
}

.pulsr-newsletter__todo {
	font-size: 0.85rem;
	color: var(--pulsr-muted, var(--pulsr-text));
}

@media (prefers-reduced-motion: reduce) {
	.pulsr-footer__list a,
	.pulsr-footer__nap a {
		transition: none;
	}
}

/* -----------------------------------------------------------------------------
 * Widgetised footer
 *
 * The columns are now block widgets, so headings arrive as ordinary h2/h3
 * blocks rather than carrying the __title class. Style them by position so
 * whatever an editor puts there inherits the same quiet section-label look.
 * -------------------------------------------------------------------------- */
.pulsr-footer__col > .pulsr-footer__widget > h2,
.pulsr-footer__col > .pulsr-footer__widget > h3,
.pulsr-footer__col h2.wp-block-heading,
.pulsr-footer__col h3.wp-block-heading {
	margin: 0 0 0.9rem;
	font-family: var(--pulsr-font-heading);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pulsr-heading);
}

/* Editor-authored lists get the same treatment as the shortcode lists. */
.pulsr-footer__col ul:not(.pulsr-footer__list):not(.pulsr-footer__social) {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
	font-size: 0.94rem;
	line-height: 1.45;
}

.pulsr-footer__col a {
	color: var(--pulsr-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 120ms ease, border-color 120ms ease;
}

.pulsr-footer__col a:hover,
.pulsr-footer__col a:focus-visible {
	color: var(--pulsr-accent-hover);
	border-bottom-color: currentColor;
}

/* The NAP paragraph keeps its plain, copyable look. */
.pulsr-footer__col p.pulsr-footer__nap {
	margin: 0;
	font-size: 0.94rem;
	line-height: 1.7;
}

.pulsr-footer__col p.pulsr-footer__nap strong {
	color: var(--pulsr-heading);
}

/* Classic widget footer: text widgets wrap content in .textwidget. Give the NAP
   and any other editor text the plain, copyable treatment. */
.pulsr-footer__col .textwidget {
	font-size: 0.94rem;
	line-height: 1.7;
}
.pulsr-footer__col .textwidget p {
	margin: 0 0 0.5rem;
}
.pulsr-footer__col .textwidget strong {
	color: var(--pulsr-heading);
}

/* -----------------------------------------------------------------------------
 * Service cards ([pulsr_child_pages] on the hub pages)
 *
 * A grid of whole-card links. Typography-led on purpose: the services have no
 * imagery yet, so the title and lede carry the card, and the design must not
 * look like something is missing. The hover motif matches the rest of the site -
 * warm border waking up to the accent, and the two-layer shadow used on the
 * services dropdown.
 * -------------------------------------------------------------------------- */
.pulsr-svc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
	gap: 1.25rem;
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pulsr-svc-card {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: clamp(1.15rem, 2.5vw, 1.5rem);
	background-color: var(--pulsr-surface);
	border: 1px solid var(--pulsr-border);
	border-radius: var(--pulsr-radius);
	text-decoration: none;
	color: var(--pulsr-text);
	transition: border-color 140ms ease, transform 140ms ease;
}

.pulsr-svc-card:hover,
.pulsr-svc-card:focus-visible {
	border-color: var(--pulsr-accent);
	transform: translateY(-2px);
}

.pulsr-svc-card:focus-visible {
	outline: 2px solid var(--pulsr-accent);
	outline-offset: 2px;
}

.pulsr-svc-card__title {
	margin: 0;
	font-family: var(--pulsr-font-heading);
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pulsr-heading);
	transition: color 140ms ease;
}

.pulsr-svc-card:hover .pulsr-svc-card__title,
.pulsr-svc-card:focus-visible .pulsr-svc-card__title {
	color: var(--pulsr-accent-hover);
}

.pulsr-svc-card__lede {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	/* Push the "more" affordance to the card's bottom edge so a short lede and a
	   long one still produce aligned cards in the same row. */
	flex-grow: 1;
}

.pulsr-svc-card__more {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pulsr-accent-text, var(--pulsr-accent-hover));
	margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
	.pulsr-svc-card,
	.pulsr-svc-card__title {
		transition: none;
	}
	.pulsr-svc-card:hover,
	.pulsr-svc-card:focus-visible {
		transform: none;
	}
}

/* Category cards on the Biblioteka page reuse the service-card design; the
   count sits where the "read more" affordance would, as a quiet badge. */
.pulsr-cat-card__count {
	margin-top: 0.25rem;
	align-self: flex-start;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--pulsr-accent-hover);
	background-color: var(--pulsr-surface-muted);
	border: 1px solid var(--pulsr-border);
	border-radius: 999px;
	padding: 0.15rem 0.65rem;
}

/* -----------------------------------------------------------------------------
 * Testimonials (Ocene / Reviews page) and team (Tim / Team page)
 *
 * Both are hand-edited HTML on their pages. Quotes get the accent bar motif;
 * people get quiet cards. Grids collapse like every other grid on the site.
 * -------------------------------------------------------------------------- */
.pulsr-quote-grid,
.pulsr-person-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
	gap: 1.25rem;
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pulsr-quote {
	margin: 0;
	padding: clamp(1.15rem, 2.5vw, 1.5rem);
	background-color: var(--pulsr-surface-muted);
	border: 1px solid var(--pulsr-border);
	border-left: 3px solid var(--pulsr-accent);
	border-radius: var(--pulsr-radius);
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.pulsr-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--pulsr-text);
}

.pulsr-quote blockquote p {
	margin: 0;
}

.pulsr-quote figcaption {
	margin-top: auto;
	font-family: var(--pulsr-font-heading);
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-person {
	padding: clamp(1.15rem, 2.5vw, 1.5rem);
	background-color: var(--pulsr-surface);
	border: 1px solid var(--pulsr-border);
	border-radius: var(--pulsr-radius);
}

.pulsr-person__role {
	margin: 0 0 0.5rem;
	font-family: var(--pulsr-font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-person__bio {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
}

/* Case studies on the Reference page: stacked story sections, each anchorable. */
.pulsr-case-list {
	display: grid;
	gap: clamp(1.5rem, 4vw, 2.25rem);
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.pulsr-case {
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background-color: var(--pulsr-surface);
	border: 1px solid var(--pulsr-border);
	border-radius: var(--pulsr-radius);
}

.pulsr-case__title {
	margin: 0 0 0.6rem;
	font-family: var(--pulsr-font-heading);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-case__lede {
	margin: 0 0 0.6rem;
	color: var(--pulsr-heading);
}

.pulsr-case p:last-child {
	margin-bottom: 0;
}

/* -----------------------------------------------------------------------------
 * Grid column control ([... columns="N"], default 3)
 *
 * The bare .pulsr-svc-grid keeps its auto-fit behaviour as the fallback for any
 * markup without a count. The --cols-N classes pin the desktop column count the
 * editor asked for, then collapse deliberately: 4 and 3 drop to 2 on tablets,
 * everything drops to 1 where cards would get too narrow to read.
 * -------------------------------------------------------------------------- */
.pulsr-svc-grid--cols-1 { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
.pulsr-svc-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pulsr-svc-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pulsr-svc-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 60em) {
	.pulsr-svc-grid--cols-3,
	.pulsr-svc-grid--cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 36em) {
	.pulsr-svc-grid--cols-2,
	.pulsr-svc-grid--cols-3,
	.pulsr-svc-grid--cols-4 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* -----------------------------------------------------------------------------
 * Access badges - the small lock beside gated titles
 *
 * Sized in em so the icon scales with whatever heading it sits in, from an h1
 * on the single page to a card title in the archive. Native title-attribute
 * tooltip carries the explanation on hover; the same text is the aria-label.
 * -------------------------------------------------------------------------- */
.pulsr-vis {
	display: inline-block;
	width: 1em;
	height: 1em;
	margin-left: 0.35em;
	/* Optical baseline for a square icon beside text: dropping it an eighth of
	   an em centres it against the x-height instead of perching on the line. */
	vertical-align: -0.125em;
	line-height: 1;
	cursor: help;
}

.pulsr-vis svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Each state claims its DESCENDANTS too: Astra's dynamic CSS contains
   `.entry-meta * { color: var(--ast-global-color-0) }`, whose universal
   selector targets the svg directly - and a direct rule beats anything the
   badge span passes down by inheritance. The child stylesheet loads after
   Astra's inline CSS, so the equal-specificity tie goes our way. */
.pulsr-vis--teaser,
.pulsr-vis--teaser * {
	color: var(--pulsr-accent-hover);
}

.pulsr-vis--members,
.pulsr-vis--members * {
	color: var(--pulsr-ink-soft);
}

/* Public badge: green - the "open" state, distinct from the accent-orange
   teaser lock and the ink members lock at a glance. */
.pulsr-vis--public,
.pulsr-vis--public * {
	color: var(--pulsr-ok);
}

/* -----------------------------------------------------------------------------
 * Paywall notice
 *
 * Sits where gated content would be, so it borrows the in-content newsletter
 * box's visual language (muted surface, accent rule) - the two are cousins:
 * both are offers interrupting reading, and they should feel related.
 * -------------------------------------------------------------------------- */
.pulsr-paywall {
	margin-block: clamp(1.5rem, 4vw, 2.25rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	background-color: var(--pulsr-surface-muted);
	border: 1px solid var(--pulsr-border);
	border-left: 3px solid var(--pulsr-accent);
	border-radius: var(--pulsr-radius);
}

.pulsr-paywall__title {
	margin: 0 0 0.4rem;
	font-family: var(--pulsr-font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-paywall__body {
	margin: 0 0 1rem;
	max-width: 60ch;
}

.pulsr-paywall__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
}

.pulsr-paywall__cta {
	display: inline-block;
	padding: 0.55em 1.2em;
	background-color: var(--pulsr-accent);
	color: var(--pulsr-surface);
	border-radius: var(--pulsr-radius);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 120ms ease;
}

.pulsr-paywall__cta:hover,
.pulsr-paywall__cta:focus-visible {
	background-color: var(--pulsr-accent-hover);
	color: var(--pulsr-surface);
}

.pulsr-paywall__about {
	color: var(--pulsr-accent-text, var(--pulsr-accent-hover));
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
	.pulsr-paywall__cta { transition: none; }
}

/* Footer newsletter: pitch plus a link, no embedded form. */
.pulsr-newsletter__link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pulsr-accent-text, var(--pulsr-accent-hover));
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* -----------------------------------------------------------------------------
 * Paywall boundary marker (staff only)
 *
 * pulsr-core renders this ONLY for users holding edit_post on the post - the
 * same capability that lets the Gate show them the withheld half - so an editor
 * proofreading the live page can see where the visitor's version stops.
 *
 * Dashed, uppercase and annotated on purpose: it is scaffolding drawn on a
 * public page, and it must never read as published furniture. Hidden in print,
 * where it would just be noise on a PDF of the article.
 * -------------------------------------------------------------------------- */
.pulsr-divider {
	--pulsr-divider-color: var(--pulsr-accent-hover);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	margin-block: clamp(1.5rem, 4vw, 2.25rem);
	padding: 0.65rem 0.9rem;
	background-color: var(--pulsr-surface-muted);
	border: 1px dashed var(--pulsr-divider-color);
	border-left: 3px solid var(--pulsr-divider-color);
	border-radius: var(--pulsr-radius);
}

.pulsr-divider__label {
	font-family: var(--pulsr-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pulsr-divider-color);
}

.pulsr-divider__hint {
	max-width: 60ch;
	font-size: 0.85rem;
	line-height: 1.45;
	color: var(--pulsr-text);
}

.pulsr-divider__staff {
	font-size: 0.68rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pulsr-ink-soft);
	opacity: 0.6;
}

/* A divider after the first one cuts nothing - drop it to a neutral ink so it
   reads as a warning about itself rather than as another boundary. */
.pulsr-divider--inert {
	--pulsr-divider-color: var(--pulsr-ink-soft);
}

@media print {
	.pulsr-divider { display: none; }
}

/* -----------------------------------------------------------------------------
 * "Already a subscriber?" line on the paywall notice
 *
 * Deliberately quiet and below the actions: most people meeting a paywall on a
 * public findings page are strangers, so requesting a subscription stays the
 * primary act. But telling a paying customer to buy what they already own is
 * the more damaging error, so the route back has to exist.
 * -------------------------------------------------------------------------- */
.pulsr-paywall__signin {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
	color: var(--pulsr-text);
}

.pulsr-paywall__signin a {
	color: var(--pulsr-accent-text, var(--pulsr-accent-hover));
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

/* -----------------------------------------------------------------------------
 * My subscription
 *
 * One page, four states. Read-only: it reports access, it never administers it.
 * -------------------------------------------------------------------------- */
.pulsr-sub__intro {
	font-size: 1.05rem;
	margin-bottom: 1.25rem;
}

.pulsr-sub__dials {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.pulsr-sub__dial {
	display: grid;
	gap: 0.2rem;
	padding: 1rem 1.15rem;
	background-color: var(--pulsr-surface-muted);
	border: 1px solid var(--pulsr-border);
	border-left: 3px solid var(--pulsr-ok);
	border-radius: var(--pulsr-radius);
}

/* Inside the renewal window the rule turns to the accent: the one moment this
   page is allowed to ask for something, because it is continuity, not an upsell. */
.pulsr-sub__dial--soon {
	border-left-color: var(--pulsr-accent);
}

.pulsr-sub__product {
	font-family: var(--pulsr-font-heading);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pulsr-ink-soft);
}

.pulsr-sub__tier {
	font-family: var(--pulsr-font-heading);
	font-size: 1.2rem;
	font-weight: 600;
	color: var(--pulsr-heading);
}

.pulsr-sub__tier small {
	font-size: 0.85rem;
	font-weight: 400;
	color: var(--pulsr-ink-soft);
}

.pulsr-sub__until {
	font-size: 0.95rem;
}

.pulsr-sub__warn {
	margin-top: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pulsr-accent-hover);
}

.pulsr-sub__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin: 1.5rem 0 0;
}

/* -----------------------------------------------------------------------------
 * Account item in the main menu
 *
 * A generic mark, never an avatar: no third-party request, and identical markup
 * for every viewer. The accessible name comes from a visually-hidden span, so
 * the icon is not an unlabelled image.
 * -------------------------------------------------------------------------- */
.pulsr-account__icon {
	display: inline-block;
	width: 1.35em;
	height: 1.35em;
	vertical-align: -0.32em;
	line-height: 1;
}

.pulsr-account__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* Astra colours menu text through descendants; claim the icon explicitly so it
   follows the link rather than inheriting a stale colour. */
.pulsr-account > a,
.pulsr-account > a .pulsr-account__icon {
	color: currentColor;
}

/* The account panel opens to the LEFT of its trigger.
 *
 * Every other submenu on the site is anchored `left: 0` to its parent, which is
 * right for items in the middle of the bar. The account icon is the LAST item,
 * roughly 40px from the viewport edge, so a panel given the services' 17.5rem
 * minimum ran 132px off-screen at 1440px wide - the label was cut in half AND
 * the document gained a horizontal scrollbar (scrollWidth 1572 against a 1440
 * viewport), so the whole page could be dragged sideways while the menu was open.
 *
 * Anchoring the panel's right edge to the trigger's fixes it for every viewport
 * rather than for the one that was measured. `.menu-item.pulsr-account` is five
 * classes deep so it beats the services rule outright instead of relying on
 * source order.
 *
 * The width minimum comes down too: 17.5rem exists for "Specijalizovana
 * istrazivanja", and a 280px panel over two short words looked like a mistake. */
.ast-desktop .ast-builder-menu-1 .menu-item.pulsr-account > .sub-menu {
	left: auto;
	right: 0;
	min-width: 11.5rem;
}

/* Astra reserves room for a nested-submenu caret inside every submenu link and
   hides it with a selector that needs the standard `menu-item` class, which the
   synthetic children now carry (see inc/account-menu.php). Belt and braces: the
   account panel never has a third level, so the icon has nothing to indicate. */
.ast-desktop .ast-builder-menu-1 .pulsr-account__child > .menu-link > .ast-icon {
	display: none;
}

/* -----------------------------------------------------------------------------
 * Archive intros
 *
 * The COPY and the decision to show it live in pulsr-core (ArchiveIntro) so a
 * theme swap cannot empty the Omnibus and PI archives. This file only says how
 * it looks. `.pulsr-archive-intro` is the plugin's own wrapper, used only when a
 * theme does not render archive descriptions at all; under Astra the text
 * arrives inside `.ast-archive-description` and needs no wrapper styling.
 * -------------------------------------------------------------------------- */
.ast-archive-description .pulsr-archive-intro__more,
.pulsr-archive-intro__more {
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

.ast-archive-description .pulsr-archive-intro__more a,
.pulsr-archive-intro__more a {
	font-weight: 600;
	color: var(--pulsr-accent-text, var(--pulsr-accent-hover));
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.pulsr-archive-intro {
	max-width: var(--pulsr-measure);
	margin: 0 auto 1.5rem;
}

/* ==========================================================================
 * Account slot (Prijava / account icon) - HIDDEN for everyone, 20 Nov 2026.
 *
 * The user's decision: hide it, keep it. The menu item and inc/account-menu.php
 * stay intact for when logins open up; delete this block to bring it back.
 * The class is on the item in both states (logged out: Prijava link; logged in:
 * the account icon with Moja pretplata / Odjava), so this hides both.
 * ======================================================================= */
.pulsr-nav-login {
	display: none !important;
}

/* ==========================================================================
 * Home page sections (20 Nov 2026): latest items + main services.
 * Cards reuse .pulsr-svc-card; this adds the section frame and the date line.
 * ======================================================================= */
.entry-content[data-ast-blocks-layout] > .wp-block-group.pulsr-home-section,
.entry-content > .wp-block-group.pulsr-home-section {
	/* Beats Astra's per-layout content rules (the SR and EN home pages use
	 * different Astra layouts and came out at different widths). Matches the
	 * Spectra sections' 1200px inner width. */
	box-sizing: border-box;
	max-width: 1240px;
	margin: 0 auto;
	padding: 5rem 20px 1rem;
}
/* "Ko smo mi" (#o-nama) follows the latest-items section and pulls its panel
 * up by 100px (it was built to sit on the hero's dark band). Make room for it. */
.entry-content[data-ast-blocks-layout] > .wp-block-group.pulsr-home-section.pulsr-home-latest,
.entry-content > .wp-block-group.pulsr-home-section.pulsr-home-latest {
	padding-bottom: calc(100px + 5rem);
}
/* Whole-card links: no underline anywhere inside the card. */
.entry-content a.pulsr-svc-card,
.entry-content a.pulsr-svc-card:hover,
.entry-content a.pulsr-svc-card:focus,
.entry-content a.pulsr-svc-card * {
	text-decoration: none;
}
.pulsr-home-section .pulsr-home-eyebrow {
	color: var(--ast-global-color-0, #f26522);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}
.pulsr-home-section h2 {
	margin-bottom: 2rem;
}


/* --------------------------------------------------------------------------
 * Home cards v2 (20 Nov 2026). Font FAMILIES are the theme's (user rule);
 * only size, weight and spacing are set here.
 * ----------------------------------------------------------------------- */
.pulsr-pcard-grid,
.pulsr-fcard-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-top: 8px;
}
@media (max-width: 921px) {
	.pulsr-pcard-grid,
	.pulsr-fcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.pulsr-pcard-grid,
	.pulsr-fcard-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* Article cards ---------------------------------------------------------- */
.entry-content a.pulsr-pcard,
.entry-content a.pulsr-pcard * { text-decoration: none; }
.pulsr-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--pulsr-surface);
	border: 0;
	border-radius: var(--pulsr-radius);
	color: var(--pulsr-text);
	transition: transform 220ms ease, box-shadow 220ms ease;
}
.pulsr-pcard::before {             /* orange rule that draws in on hover */
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--pulsr-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 260ms ease;
	z-index: 2;
}
/* Borderless cards: no lift or shadow (it outlined a box the text runs flush
 * to). Hover = image zoom, orange rule on the image, orange title, arrow slide. */
.pulsr-pcard:hover::before,
.pulsr-pcard:focus-visible::before { transform: scaleX(1); }
.pulsr-pcard:focus-visible { outline: 2px solid var(--pulsr-accent); outline-offset: 3px; }

.pulsr-pcard__media {              /* hatch pattern = the illustrations' motif */
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background-color: var(--pulsr-surface-muted);
	background-image: repeating-linear-gradient(135deg, rgba(28, 13, 10, 0.55) 0 1px, transparent 1px 9px);
	overflow: hidden;
}
.pulsr-pcard__media::after {       /* orange dot over the hatch; a real image covers it */
	content: "";
	position: absolute;
	width: 22%;
	aspect-ratio: 1;
	left: 14%;
	bottom: 18%;
	border-radius: 50%;
	background: var(--pulsr-accent);
}
.pulsr-pcard__img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}
.pulsr-pcard:hover .pulsr-pcard__img { transform: scale(1.04); }

.pulsr-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 0 4px;
}
.pulsr-pcard__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 0.78rem;
	line-height: 1;
}
.pulsr-pcard__label {
	color: var(--pulsr-accent);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.pulsr-pcard__date {
	color: #8a7f7a;
	padding-left: 10px;
	border-left: 1px solid var(--pulsr-border);
}
.pulsr-pcard__title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 10px;
	font-family: var(--pulsr-font-heading);
	font-size: 1.28rem;
	font-weight: 600;
	line-height: 1.28;
	letter-spacing: -0.01em;
	color: var(--pulsr-heading);
	transition: color 160ms ease;
}
.pulsr-pcard:hover .pulsr-pcard__title { color: var(--pulsr-accent-hover); }
.pulsr-pcard__lede {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.93rem;
	line-height: 1.6;
	color: #5c5450;
}
.pulsr-pcard__more,
.pulsr-fcard__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 0.86rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.pulsr-pcard__more {               /* right-aligned, under a hairline */
	align-self: stretch;
	justify-content: flex-end;
	margin-top: auto;
	padding-top: 16px;
	padding-right: 6px;              /* room for the arrow's slide */
	border-top: 1px solid var(--pulsr-border);
	color: var(--pulsr-heading);
	transition: color 160ms ease;
}
.pulsr-pcard:hover .pulsr-pcard__more { color: var(--pulsr-accent-hover); }
.pulsr-pcard__lede + .pulsr-pcard__more,
.pulsr-pcard__title + .pulsr-pcard__more { margin-top: auto; }
.pulsr-pcard__body > .pulsr-pcard__lede { margin-bottom: 20px; }
.pulsr-pcard__arrow,
.pulsr-fcard__arrow {
	display: inline-block;
	color: var(--pulsr-accent);
	transition: transform 200ms ease;
}
.pulsr-pcard:hover .pulsr-pcard__arrow,
.pulsr-fcard:hover .pulsr-fcard__arrow { transform: translateX(5px); }

.pulsr-latest-all { margin: 36px 0 0; text-align: center; }
.entry-content a.pulsr-btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	border: 1px solid var(--pulsr-heading);
	border-radius: var(--pulsr-radius);
	color: var(--pulsr-heading);
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 180ms ease, color 180ms ease;
}
.entry-content a.pulsr-btn-outline:hover,
.entry-content a.pulsr-btn-outline:focus-visible {
	background: var(--pulsr-heading);
	color: var(--pulsr-surface);
}

/* Service feature cards -------------------------------------------------- */
.entry-content a.pulsr-fcard,
.entry-content a.pulsr-fcard * { text-decoration: none; }
.pulsr-fcard {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 300px;
	padding: 34px 32px 30px;
	overflow: hidden;
	background: var(--pulsr-ink);
	border-radius: var(--pulsr-radius);
	color: #cfc6c2;
	transition: transform 220ms ease, background-color 220ms ease;
}
.pulsr-fcard::after {              /* hatch disc in the corner, the illustrations' motif */
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 160px;
	height: 160px;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 8px);
	border-radius: 50%;
	transition: transform 400ms ease;
}
.pulsr-fcard:hover,
.pulsr-fcard:focus-visible {
	transform: translateY(-4px);
	background-color: var(--pulsr-heading);
}
.pulsr-fcard:hover::after { transform: scale(1.25); }
.pulsr-fcard:focus-visible { outline: 2px solid var(--pulsr-accent); outline-offset: 3px; }
.pulsr-fcard__num {
	margin-bottom: 40px;
	font-family: var(--pulsr-font-heading);
	font-size: 2.6rem;
	font-weight: 600;
	line-height: 1;
	color: var(--pulsr-accent);
}
.pulsr-fcard__title {
	margin-bottom: 12px;
	font-family: var(--pulsr-font-heading);
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #ffffff;
}
.pulsr-fcard__lede {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #cfc6c2;
}
.pulsr-fcard__more {
	padding-top: 28px;
	color: #ffffff;
}
.pulsr-fcard__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-left: 4px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #ffffff;
	transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}
.pulsr-fcard:hover .pulsr-fcard__arrow {
	background: var(--pulsr-accent);
	border-color: var(--pulsr-accent);
}

@media (prefers-reduced-motion: reduce) {
	.pulsr-pcard, .pulsr-pcard *, .pulsr-pcard::before,
	.pulsr-fcard, .pulsr-fcard *, .pulsr-fcard::after { transition: none !important; }
	.pulsr-fcard:hover { transform: none; }
	.pulsr-pcard:hover .pulsr-pcard__img { transform: none; }
}

/* --------------------------------------------------------------------------
 * Pages that hide Astra's title and open with their own H1 block (the service
 * pages, O nama): nothing spaced them from the header line - the H1 sat at 0px.
 * Give them the same offset Astra's own page title gets (cf. /pretplata/).
 * ----------------------------------------------------------------------- */
.ast-plain-container .entry-content > h1.wp-block-heading:first-child {
	margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* ==========================================================================
 * Page width is Astra's Container Layout, chosen PER PAGE in the editor
 * (Astra Settings > Container Layout: Narrow / Normal / Full Width; default
 * Narrow, 800px - 20 Nov 2026). No width rules for content blocks here.
 *
 * Only safety rule kept: images can never be wider than their container.
 * WordPress renders centred image figures as display:table, which grows to
 * the image's natural width (1024px) and made phones scroll sideways.
 * ----------------------------------------------------------------------- */
.entry-content img {
	max-width: 100%;
	height: auto;
}
.entry-content figure {
	max-width: 100%;
}
.entry-content figure.wp-block-image.aligncenter {
	display: block;
	text-align: center;
}
.entry-content figure.wp-block-image.aligncenter img {
	display: inline-block;
}

/* "Wide width" (alignwide) in a Narrow page: the block breaks out of the 800px
 * column to up to 1200px, centred - for a big table, a gallery or a multi-column
 * section, without switching the whole page to Normal. Editors pick it in the
 * block toolbar (Align > Wide width). */
.ast-narrow-container .entry-content > .alignwide {
	width: min(1200px, calc(100vw - 40px));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}


/* Article cards outside .entry-content (the Puls javnosti / Predviđanja
 * archives): same no-underline rule as in content, plus breathing room. */
a.pulsr-pcard,
a.pulsr-pcard * {
	text-decoration: none;
}
.pulsr-archive-grid {
	margin-top: 40px;
	row-gap: 48px;
}
/* The card image must fill its 16:9 frame; the general ".entry-content img
 * { height: auto }" safety rule above would otherwise shrink it on the home page. */
.pulsr-pcard .pulsr-pcard__media .pulsr-pcard__img {
	height: 100%;
	max-width: none;
}
