/*
 * Header, navigation, main area and footer, ported from design/scshiur-mockup.html.
 * Deviations from the mockup are accessibility fixes (phase-1-plan.md §C):
 *   - smallest header text raised from 0.65/0.68rem to 0.75rem (12px), with tighter spacing so the header is not taller;
 *   - visible focus rings; active tab marked by fill, weight and aria-current.
 */

.wrap {
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
	background: var(--navy-deep);
	color: var(--paper-raised);
	padding-block: 20px;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	color: inherit;
	border-radius: var(--radius);
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-hebrew {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	font-weight: 500;
	color: var(--paper-raised);
	line-height: 1.15;
	align-self: flex-start; /* keep the RTL run aligned with the English lines below it */
}

.brand-sub {
	font-size: 0.75rem;          /* was 0.65rem in the mockup */
	letter-spacing: 0.1em;
	color: var(--gold-soft);     /* 12.01:1 */
	line-height: 1.1;
	margin-block: 1px;           /* was 3px: absorbs the larger text */
}

.brand-name {
	font-family: var(--font-serif);
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--header-text);
}

.brand-address {
	font-size: 0.75rem;          /* was 0.68rem in the mockup */
	color: var(--header-text-dim); /* 6.31:1 */
	line-height: 1.1;
	margin-top: 1px;             /* was 3px */
}

.cup-mark {
	width: 56px;                 /* owner, 9 Oct 2026: much bigger and clearer (was 38px) */
	height: 56px;
	flex-shrink: 0;
}

.cup-mark .cup-line,
.cup-mark .cup-steam {
	stroke: var(--gold-soft);
}

.cup-mark .cup-steam {
	opacity: 0.75;
}

/* ---------- Navigation (boxed tabs; active = gold-soft) ---------- */
.site-nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 0.9rem;
}

.site-nav a {
	display: inline-block;
	text-decoration: none;
	color: var(--header-text);                 /* 9.94:1 on the tab background */
	padding: 9px 15px;
	border-radius: var(--radius-tab);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav a:hover {
	background: rgba(240, 230, 201, 0.12);   /* text stays 8.31:1 */
	border-color: rgba(240, 230, 201, 0.3);
}

.site-nav a.is-active,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a {
	background: var(--gold-soft);
	color: var(--navy-deep);                   /* 12.01:1 */
	font-weight: 600;
	border-color: var(--gold-soft);
}

/* The focus ring sits outside the tab (offset), so on the gold-soft active tab it is drawn on navy-deep. */
.site-nav a:focus-visible {
	outline: 2px solid var(--focus-dark);
	outline-offset: 2px;
}

/* ---------- Main ---------- */
.site-main {
	max-width: var(--wrap-max);
	margin-inline: auto;
	padding: 44px 0 80px;
}

.entry-title {
	font-size: 1.5rem;
	margin-bottom: 22px;
}

.entry-content > * + * {
	margin-top: 1em;
}

.skeleton-note {
	color: var(--ink-soft);
	font-style: italic;
}

/* ---------- Coffee-break cup (used from Phase 3) ---------- */
.break-cup {
	width: 2em;                  /* owner, 9 Oct 2026: the logo cup, larger than the text (was 15px) */
	height: 2em;
	vertical-align: middle;
	margin-inline-end: 8px;
}

.break-cup .cup-line,
.break-cup .cup-steam {
	stroke: var(--navy);         /* decorative (the row has a text label); 9.70:1 on --tint-warm, so it reads clearly */
}

.break-cup .cup-steam {
	opacity: 0.7;
}

/* ---------- Footer ---------- */
.site-footer {
	border-top: 1px solid var(--line);
	padding-block: 28px;
	color: var(--ink-soft);    /* 6.45:1 */
	font-size: 0.88rem;
}

.site-footer .wrap {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 14px;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 16px;
}

.footer-links a {
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* ---------- Small screens (mockup breakpoint 640px; reflow down to 320px) ---------- */
@media (max-width: 640px) {
	.site-header .wrap {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.site-nav ul {
		gap: 8px;
	}
}

@media (max-width: 360px) {
	:root {
		--gutter: 16px;
	}

	.site-nav a {
		padding: 8px 12px;
	}
}
