/* -----------------------------------------------------------------------
   Single template for the "ניתוח קמפיין" column (slug: atara).
   Loads on top of atara-archive.css, which supplies the shared stage: the
   measurement grid, the drifting accent glows, the self-drawing plot and the
   travelling marker. This file turns that plane into an article head and adds
   the campaign still + a single centred reading column beneath it.
   ----------------------------------------------------------------------- */

/* --- The head plane --------------------------------------------------- */
/* Reuses .atara-hero (dark plane, vignette, stage) but reshaped for an article
   header: taller foot so the campaign still can rise into the empty lower half
   of the panel without touching the type. */
.atara-post__hero {
	min-block-size: clamp(330px, 46vh, 470px);
	padding-block: clamp(2.4rem, 5vw, 3.5rem) clamp(5.5rem, 11vw, 9rem);
}

.atara-post__head {
	position: relative;
	z-index: 1;
}

/* Section identity, set as a lit chip — the same label the archive cards and
   count carry, so the reader knows the column at a glance. */
.atara-post__kicker {
	display: inline-flex;
	align-items: center;
	padding: 0.4em 1em;
	margin-block-end: clamp(0.9rem, 2vw, 1.25rem);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	animation: atara-rise 0.9s var(--shivuk-ease) 0.1s both;
}

/* The campaign under review. Smaller than the archive's section title because
   this is a full sentence, not two words: capped in measure so it breaks to
   two or three lines rather than one long ruler, and set tight. */
.atara-post__title {
	margin: 0;
	max-inline-size: 20ch;
	font-size: clamp(1.9rem, 1rem + 3.2vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
	color: #ffffff;
	text-shadow: 0 2px 34px rgba(4, 12, 21, 0.55);
	animation: atara-reveal 1s var(--shivuk-ease) 0.15s both;
}

.atara-post__byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem 0.8rem;
	margin-block-start: clamp(1.1rem, 2.4vw, 1.5rem);
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.94rem;
	animation: atara-rise 0.9s var(--shivuk-ease) 0.45s both;
}

.atara-post__author {
	color: #ffffff;
	font-weight: 700;
}

.atara-post__author:hover,
.atara-post__author:focus-visible {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atara-post__dot {
	opacity: 0.5;
}

/* A hairline splits the share cluster off the meta so the head reads as
   “who / when / how long · share” rather than one run-on line. */
.atara-post__share {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-inline-start: 0.35rem;
	padding-inline-start: 0.85rem;
	border-inline-start: 1px solid rgba(255, 255, 255, 0.22);
}

.atara-post__share-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.72);
}

/* Share buttons re-tinted for the dark plane — the base component is drawn for
   light surfaces, so on this ground it needs a translucent chip that lights up
   to the accent on hover. */
.atara-post__share .entry-share__btn {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.atara-post__share .entry-share__btn:hover,
.atara-post__share .entry-share__btn:focus-visible {
	background: var(--shivuk-color-accent);
	border-color: transparent;
	color: #ffffff;
	transform: translateY(-2px);
}

/* --- Body ------------------------------------------------------------- */
.atara-post__body {
	position: relative;
}

/* The campaign still. Lifts up out of the panel to straddle the seam — the
   one breakout move on the page — wider than the reading measure so it reads
   as the subject, with the prose measured narrower beneath it. */
.atara-post__cover {
	position: relative;
	z-index: 2;
	inline-size: 100%;
	max-inline-size: 760px;
	margin: clamp(-7rem, -9vw, -4.5rem) auto clamp(2rem, 4vw, 3rem);
	border-radius: clamp(14px, 1.8vw, 22px);
	overflow: hidden;
	background: var(--shivuk-color-surface);
	box-shadow: var(--shivuk-shadow-lg);
}

.atara-post__cover img {
	display: block;
	inline-size: 100%;
	block-size: auto;
}

.atara-post__credit {
	position: absolute;
	inset-block-end: 0.7rem;
	inset-inline-start: 0.7rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background: rgba(6, 18, 31, 0.66);
	backdrop-filter: blur(8px);
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.atara-post__credit svg {
	inline-size: 14px;
	block-size: 14px;
	opacity: 0.9;
}

/* One centred reading column for the analysis. entry-content carries its own
   typographic rhythm from style.css; this only sets the measure so the prose
   holds a comfortable line length under the wider still. */
.atara-post__reading {
	max-inline-size: 46rem;
	margin-inline: auto;
}

/* The in-content video (every teardown embeds the campaign) and its share
   frame already style themselves; nothing to add here. */

/* --- Motion preferences ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.atara-post__kicker,
	.atara-post__title,
	.atara-post__byline {
		animation: none;
	}
}

/* --- Small screens ---------------------------------------------------- */
@media (max-width: 640px) {
	.atara-post__share {
		flex-basis: 100%;
		justify-content: center;
		margin-inline-start: 0;
		padding-inline-start: 0;
		border-inline-start: 0;
	}
}


/* --- Byline avatar ---------------------------------------------------- */
.atara-post__author {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.atara-post__avatar {
	inline-size: 30px;
	block-size: 30px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* --- End-of-article author box (a byline-length note on the columnist) - */
.atara-author {
	display: flex;
	align-items: flex-start;
	gap: clamp(1rem, 3vw, 1.6rem);
	margin-block: clamp(2.5rem, 5vw, 3.5rem);
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--shivuk-color-border);
	border-radius: var(--shivuk-radius-lg);
	background: var(--shivuk-color-surface);
}

.atara-author__photo {
	flex: none;
	inline-size: clamp(76px, 15vw, 104px);
	block-size: clamp(76px, 15vw, 104px);
	border-radius: 50%;
	object-fit: cover;
	/* A thin accent ring, offset from the card so it reads as a frame. */
	box-shadow: 0 0 0 3px var(--shivuk-color-surface), 0 0 0 4px var(--shivuk-color-accent);
}

.atara-author__name {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--shivuk-color-text);
}

.atara-author__bio {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.7;
	color: var(--shivuk-color-muted);
}

.atara-author__bio + .atara-author__bio {
	margin-block-start: 0.7rem;
}

@media (max-width: 480px) {
	.atara-author {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}


/* --- Hero as a full-bleed campaign still (photo background) ------------ */
/* The featured image now fills the head; the title sits over it, bottom-set,
   under a navy scrim in the section's own ink so type stays legible over any
   photo. Overrides the shared .atara-hero plate. */
.atara-post__hero {
	place-items: end center;
	min-block-size: clamp(440px, 64vh, 640px);
	padding-block: clamp(3rem, 8vw, 5rem) clamp(2.2rem, 5vw, 3.25rem);
}

.atara-post__hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	background: #050f1a;
}

.atara-post__hero-img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	object-position: center;
}

/* The scrim: light at the top, deep at the foot where the title lands — tuned
   stronger than the archive's plate vignette because it sits over a photo. */
.atara-post__hero--media::before {
	background:
		linear-gradient(180deg, rgba(4, 12, 21, 0.34) 0%, rgba(4, 12, 21, 0.14) 38%, rgba(4, 12, 21, 0.86) 100%),
		radial-gradient(120% 80% at 50% 28%, transparent 42%, rgba(4, 12, 21, 0.42) 100%);
}

/* Over a photo the title carries a heavier shadow. */
.atara-post__hero--media .atara-post__title {
	text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Photo credit, pinned to the foot corner of the hero. */
.atara-post__credit {
	position: absolute;
	z-index: 2;
	inset-block-end: 0.85rem;
	inset-inline-end: 1rem;
	inset-inline-start: auto;
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	padding: 0.3em 0.75em;
	border-radius: 999px;
	background: rgba(6, 18, 31, 0.6);
	backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.72rem;
	font-weight: 600;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.atara-post__credit svg {
	inline-size: 14px;
	block-size: 14px;
	opacity: 0.9;
}

/* No overlapping cover any more — the reading column just starts under the
   hero. */
.atara-post__body {
	padding-block-start: clamp(2rem, 5vw, 3rem);
}
