/* ==========================================================================
   Nordic Supercomputing Summit 2026 — supplemental block styles
   Everything that theme.json cannot express: block-style variants and a small
   set of helper classes applied via the "Additional CSS class" field on blocks.
   ========================================================================== */

::selection { background: #C9A24B; color: #0A0B0D; }

/* ---- Button variants (register_block_style) -------------------------------- */
.wp-block-button.is-style-white .wp-block-button__link {
	background-color: #fff;
	color: #0A0B0D;
}
.wp-block-button.is-style-white .wp-block-button__link:hover,
.wp-block-button.is-style-white .wp-block-button__link:focus {
	background-color: #fff;
	color: #0A0B0D;
	box-shadow: 0 12px 30px rgba(255, 255, 255, .18);
	transform: translateY(-2px);
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background-color: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .35);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.wp-block-button.is-style-ghost .wp-block-button__link:focus {
	background-color: rgba(255, 255, 255, .08);
	border-color: rgba(255, 255, 255, .6);
	color: #fff;
}

/* Default (gold) button lift on hover to match the source design */
.wp-block-button__link {
	transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.wp-block-button:not(.is-style-white):not(.is-style-ghost) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-white):not(.is-style-ghost) .wp-block-button__link:focus {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(201, 162, 75, .45);
}

/* ---- Eyebrow label --------------------------------------------------------- */
.is-style-eyebrow {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #C9A24B;
}

/* ---- Uppercase display heading --------------------------------------------- */
.is-style-upper { text-transform: uppercase; }

/* ---- Mono caption ---------------------------------------------------------- */
.is-style-mono-caption {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8A8E94;
}

/* ---- Bordered card (organizers / partners) --------------------------------- */
.wp-block-group.is-style-card {
	background: #fff;
	border: 1px solid #E6E7E8;
}

/* ==========================================================================
   Image sizing utilities (kept in CSS so image blocks stay attribute-clean
   and never trip block validation)
   ========================================================================== */
.nss-w170 img { width: 170px; height: auto; }
.nss-h28 img  { height: 28px; width: auto; }
.nss-h42 img  { height: 42px; width: auto; }
.nss-h44 img  { height: 44px; width: auto; }
.nss-h48 img  { height: 48px; width: auto; }
.nss-h52 img  { height: 52px; width: auto; }
.nss-h56 img  { height: 56px; width: auto; }
.nss-h60 img  { height: 60px; width: auto; }
.nss-h74 img  { height: 74px; width: auto; }
.nss-img-ml-auto { margin-left: auto; }

/* Max line-length helpers (max-width is not a block style attribute, so it
   lives here to keep headings/paragraphs attribute-clean) */
.nss-mw-16 { max-width: 16ch; }
.nss-mw-22 { max-width: 22ch; }
.nss-mw-24 { max-width: 24ch; }
.nss-mw-48 { max-width: 48ch; }
.nss-mw-62 { max-width: 62ch; }

/* LUMI figure (margin + mono caption via CSS, not inline/blockstyle) */
.nss-lumi { margin-top: 64px; }
.nss-lumi figcaption {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #8A8E94;
}

/* Program schedule rows (opacity + break emphasis are not block attributes) */
.nss-sched-title { font-weight: 600; }
.nss-sched-row.is-break { opacity: .62; }
.nss-sched-row.is-break .nss-sched-title { font-style: italic; font-weight: 400; }

/* #1 — Flush header → sections → footer (kill the root block-gap so there is
   no strange gap under the sticky header, above the hero) */
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }

/* #1 — Sticky header. The header template part is a direct child of the tall
   .wp-site-blocks root, so position:sticky has room to travel (a group nested
   inside the part's wrapper would be confined and could not stick). */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 100; }

/* #2 — Width-limited text (.nss-mw-*) is wrapped in flow-layout groups in the
   patterns. Flow layout does not centre its children, so the text left-aligns
   to the page column (same left edge as the eyebrow), instead of being centred
   by the section's constrained layout. This helper caps the Program lead. */
.nss-col-640 { max-width: 640px; }

/* #5 — Finland's two logos sit side by side */
.nss-org-pair { flex-wrap: nowrap; gap: 16px; }
.nss-org-pair .wp-block-image { margin: 0; }
.nss-org-pair img {
	max-height: 42px;
	max-width: 92px;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* #4 — Popups: pure-CSS :target modals, enhanced by assets/js/modal.js.
   The overlay is a transparent, full-screen click-catcher (so "click outside"
   works and the × / Esc close it); only the content-sized white panel shows —
   no dark/gradient backdrop. */
.nss-modal {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: none;
	padding: 48px 24px;
	overflow-y: auto;
}
.nss-modal:target {
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.nss-modal__panel {
	width: 100%;
	background: #fff;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .5);
}
.nss-modal__head { position: relative; padding: 36px 40px; }
.nss-modal__body { padding: 24px 40px 40px; }
.nss-modal__close a {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .25);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
}
.nss-modal__close a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nss-modal__body .nss-sched-row:last-child { border-bottom-width: 0 !important; }

/* Map placeholder rendered by the [nss_map] shortcode until a real embed is added */
.nss-map-placeholder {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 7;
	background-color: #ECEEEF;
	background-image: repeating-linear-gradient(135deg, rgba(10, 11, 13, .05) 0, rgba(10, 11, 13, .05) 2px, transparent 2px, transparent 14px);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #E0E1E2;
}
.nss-map-placeholder span {
	font-family: 'IBM Plex Mono', ui-monospace, monospace;
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #9A9EA4;
}
@media (max-width: 600px) {
	.nss-modal__head, .nss-modal__body { padding-left: 24px; padding-right: 24px; }
}

/* ==========================================================================
   Helper classes applied via "Additional CSS class(es)"
   ========================================================================== */

/* Hero: full-height section with a CSS background image + gradient overlay and
   bottom-aligned content (mirrors the original static site, no cover block). */
.nss-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	background-image:
		linear-gradient(180deg, rgba(5, 8, 14, .32) 0%, rgba(5, 8, 14, .05) 38%, rgba(5, 8, 14, .18) 68%, rgba(5, 8, 14, .82) 100%),
		url('../images/hero-aurora-bright.jpg');
	background-size: cover;
	background-position: center 30%;
	background-repeat: no-repeat;
}
.nss-hero__title { text-shadow: 0 4px 40px rgba(0, 0, 0, .45); }
/* Fill the 1240 column instead of shrinking to content. .nss-hero is a flex
   column, and the constrained layout's auto side-margins would otherwise make
   this shrink-to-content and centre. width:100% keeps it left-aligned/full. */
.nss-hero__inner { width: 100%; }

/* Program stat numbers */
.nss-stat-num {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	font-size: 52px;
	line-height: 1;
	color: #C9A24B;
}
.nss-stat-label {
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .55);
}

/* Speaker photo — real image block, replaceable in the editor */
.nss-speaker-photo { margin: 0; }
.nss-speaker-photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: linear-gradient(155deg, #1C2B33 0%, #0E3B33 60%, #2A2440 100%);
}
.nss-speaker-title {
	font-size: 13px;
	font-weight: 600;
	color: #C9A24B;
	letter-spacing: .02em;
}

/* Organizer country label */
.nss-org-country {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8A8E94;
}
.nss-org img { object-fit: contain; width: auto; height: auto; margin-inline: auto; }

/* Partner tile — image block; select it and Replace to upload a logo */
.nss-partner-logo {
	margin: 0;
	background: #fff;
	border: 1px solid #E6E7E8;
	min-height: 108px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 22px;
}
.nss-partner-logo img {
	max-height: 64px;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Funding fine print */
.nss-funding-text p {
	font-size: 10.5px;
	line-height: 1.65;
	color: rgba(255, 255, 255, .55);
}

/* Fine-print / muted small text on dark */
.nss-fine {
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
	letter-spacing: .04em;
}

/* Schedule (program details) rows */
.nss-schedule-time {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	color: #C9A24B;
	min-width: 72px;
}

/* ---- Details "Summit panel" style ------------------------------------------ */
.wp-block-details.is-style-panel {
	border: 1px solid #E6E7E8;
	padding: 22px 28px;
	background: #fff;
}
.wp-block-details.is-style-panel summary {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: #0A0B0D;
	cursor: pointer;
}
.wp-block-details.is-style-panel[open] summary { margin-bottom: 18px; }

/* ==========================================================================
   Responsive tweaks that mirror the original breakpoints
   ========================================================================== */
@media (max-width: 781px) {
	.nss-hero__title { line-height: .96; }
	.nss-stat-num { font-size: 42px; }
}
