/* Nexus Alumni — gaya tambahan di luar theme.json */

/* Eyebrow: label kode-rute kecil di atas judul */
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--channel);
	margin-bottom: 0.25rem;
}
.has-deep-background-color .is-style-eyebrow,
.has-harbor-background-color .is-style-eyebrow { color: var(--wp--preset--color--signal); }

/* Kartu */
.is-style-nexus-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mist);
	padding: 1.5rem;
	height: 100%;
}
.is-style-nexus-card:hover { border-color: var(--wp--preset--color--channel); }

/* Motif garis rute: garis putus dengan simpul di kiri */
.is-style-route {
	position: relative;
	padding-left: 2rem !important;
}
.is-style-route::before {
	content: "";
	position: absolute;
	left: 0.45rem; top: 0.4rem; bottom: 0.4rem;
	border-left: 2px dashed var(--wp--preset--color--channel);
}
.is-style-route > *::before { content: none; }
.is-style-route > h3, .is-style-route > h4 { position: relative; }
.is-style-route > h3::after, .is-style-route > h4::after {
	content: "";
	position: absolute;
	left: -1.95rem; top: 0.3em;
	width: 0.8rem; height: 0.8rem;
	border-radius: 50%;
	background: var(--wp--preset--color--signal);
	box-shadow: 0 0 0 3px var(--wp--preset--color--paper);
}

/* Placeholder yang wajib diganti sebelum go-live */
.is-style-placeholder {
	background: repeating-linear-gradient(45deg, #fff6e5, #fff6e5 8px, #fdecc8 8px, #fdecc8 16px);
	border: 1px dashed var(--wp--preset--color--signal);
	padding: 0.75rem 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--ink);
}

/* Header */
.nexus-header { border-bottom: 1px solid var(--wp--preset--color--mist); }
.nexus-header .wp-block-navigation a { text-decoration: none; }
.nexus-header .wp-block-navigation a:hover { color: var(--wp--preset--color--channel); }

/* Kode bidang (B1..B5) */
.nexus-code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--xs);
	color: var(--wp--preset--color--slate);
	letter-spacing: 0.08em;
}

/* Hero network lines (dekoratif, SVG inline via pattern) */
.nexus-hero { position: relative; overflow: hidden; }
.nexus-hero .nexus-network { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.nexus-hero > .wp-block-group__inner-container, .nexus-hero > * { position: relative; }

/* Link judul post tanpa underline */
.wp-block-post-title a { text-decoration: none; color: inherit; }
.wp-block-post-title a:hover { color: var(--wp--preset--color--channel); }

:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--wp--preset--color--signal); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.nexus-links { list-style: none; padding-left: 0; line-height: 2; }
.nexus-links a { text-decoration: none; }
.nexus-links a:hover { text-decoration: underline; }

.wp-block-site-title a { text-decoration: none; }
.wp-block-pullquote { border-color: var(--wp--preset--color--signal); font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--harbor); }

/* ===== v1.1: gambar, gerak halus, data contoh ===== */
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.nexus-header { background: rgba(245, 247, 248, 0.92) !important; backdrop-filter: blur(8px); }

.nexus-hero .wp-block-cover__inner-container { position: static; }
.nexus-hero .nexus-network { z-index: 1; }
.nexus-hero .wp-block-cover__inner-container > .wp-block-group { position: relative; z-index: 2; }
.nexus-lines path { stroke-dasharray: 8 10; animation: nexus-flow 6s linear infinite; }
.nexus-pulse { transform-box: fill-box; transform-origin: center; animation: nexus-pulse 2.4s ease-in-out infinite; }
@keyframes nexus-flow { to { stroke-dashoffset: -180; } }
@keyframes nexus-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .65; } }

.nexus-media-card { overflow: hidden; display: flex; flex-direction: column; gap: 1rem; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.nexus-media-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(9, 28, 41, .45); }
.nexus-media-card > .wp-block-image { margin: 0; }
.nexus-zoom { overflow: hidden; }
.nexus-zoom img { transition: transform .6s ease; display: block; width: 100%; }
.nexus-media-card:hover .nexus-zoom img, .nexus-zoom:hover img { transform: scale(1.05); }

.nexus-stats { gap: 1.5rem !important; }
.nexus-stat { border-left: 3px solid var(--wp--preset--color--signal); padding-left: 1rem; }
.nexus-count { line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0; }
.nexus-dummy-note { margin-top: 1rem; }

.nexus-date-badge {
	display: inline-flex; align-items: baseline; gap: .4rem;
	font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--xs);
	letter-spacing: .08em; color: var(--wp--preset--color--slate); margin: 0;
}
.nexus-date-badge strong { font-family: var(--wp--preset--font-family--display); font-size: 2rem; color: var(--wp--preset--color--signal); letter-spacing: 0; line-height: 1; }

.nexus-book img { box-shadow: 0 18px 30px -16px rgba(0,0,0,.6); transition: transform .3s ease; }
.nexus-book:hover img { transform: translateY(-6px) rotate(-1deg); }
.nexus-books > li { display: flex; flex-direction: column; gap: .5rem; }

/* Avatar inisial (pengurus & direktori) */
.nexus-avatar {
	width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0;
	font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.4rem;
	background: var(--wp--preset--color--harbor); color: var(--wp--preset--color--signal);
}
.nexus-avatar.alt { background: var(--wp--preset--color--channel); color: var(--wp--preset--color--white); }

/* Penanda data contoh */
.nexus-demo-bar {
	background: var(--wp--preset--color--signal); color: var(--wp--preset--color--deep);
	font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .06em;
	text-align: center; padding: .4rem 1rem;
}

.wp-block-gallery.nexus-gallery img { transition: transform .5s ease, filter .3s ease; }
.wp-block-gallery.nexus-gallery figure { overflow: hidden; }
.wp-block-gallery.nexus-gallery figure:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
	.nexus-lines path, .nexus-pulse { animation: none; }
	.nexus-media-card:hover, .nexus-book:hover img { transform: none; }
}
.nexus-pub-meta { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--mist); border-bottom: 1px solid var(--wp--preset--color--mist); font-size: var(--wp--preset--font-size--sm); }
.nexus-pub-meta dt { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--xs); text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--slate); }
.nexus-pub-meta dd { margin: 0; }
.nexus-zoom-media .wp-block-media-text__media { overflow: hidden; }
.nexus-zoom-media .wp-block-media-text__media img { transition: transform .6s ease; }
.nexus-zoom-media:hover .wp-block-media-text__media img { transform: scale(1.04); }
.wp-block-media-text + .wp-block-media-text { margin-top: var(--wp--preset--spacing--40); }
.wp-block-post-featured-image img { transition: transform .6s ease; }
.wp-block-post-template li:hover .wp-block-post-featured-image:not(.nexus-book) img { transform: scale(1.04); }
.wp-block-post-featured-image { overflow: hidden; }
.has-deep-background-color .wp-block-post-title, .has-deep-background-color .wp-block-post-title a { color: var(--wp--preset--color--white); }
.has-deep-background-color .wp-block-post-terms a { color: var(--wp--preset--color--signal); text-decoration: none; }
/* Galeri: rasio seragam, keterangan di bawah foto (tidak menutupi watermark) */
.wp-block-gallery.nexus-gallery figure.wp-block-image { flex-direction: column !important; align-items: stretch; }
.wp-block-gallery.nexus-gallery figure.wp-block-image img { aspect-ratio: 16 / 10; object-fit: cover; object-position: right center; height: auto !important; }
.wp-block-gallery.nexus-gallery figure.wp-block-image figcaption {
	position: static; background: none; color: var(--wp--preset--color--slate); max-height: none; padding: .5rem 0 0; text-align: left;
	font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--xs); text-shadow: none;
}
.wp-block-gallery.nexus-gallery figure.wp-block-image:before { display: none; }
