/*
 * NON-CRITICAL CSS — printed as a <link> at the end of <body> (non-blocking).
 * Everything here styles content that is below the first viewport or
 * appears only after interaction (tabs, carousel, lightbox, filters, footer).
 */

/* ───────── Entry content (long-form reading) ───────── */
.entry-content {
	max-width: var(--measure); margin: 0 auto;
	font-size: 1.0625rem; line-height: 1.8; font-weight: 400; color: var(--text-light);
}
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--font-heading); color: var(--gold-light); line-height: 1.3; margin-top: 2em; letter-spacing: 1px;
}
.entry-content h2 { font-size: 1.6rem; color: var(--gold-primary); }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content a { color: var(--gold-primary); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:hover { color: var(--gold-light); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content blockquote {
	border-left: 2px solid var(--gold-primary); padding: 0.5em 0 0.5em 1.5em;
	font-family: var(--font-heading); font-size: 1.2rem; color: var(--gold-light); line-height: 1.6;
}
.entry-content blockquote cite { display: block; margin-top: 0.75em; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-muted); font-style: normal; }
.entry-content figure { margin-inline: 0; }
.entry-content img { height: auto; }
.entry-content figcaption, .wp-element-caption { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.6em; }
.entry-content hr {
	border: 0; height: 24px; margin: 2.5em auto; color: var(--gold-primary); opacity: 0.6;
	background:
		linear-gradient(90deg, transparent, var(--gold-primary), transparent) center / 40% 1px no-repeat;
}
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border-gold); padding: 0.6em 0.8em; text-align: left; }
.entry-content th { font-family: var(--font-heading); color: var(--gold-light); background: var(--bg-card); }
.entry-content pre, .entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--bg-card); }
.entry-content pre { padding: 1em; overflow-x: auto; border: 1px solid var(--border-gold); }
.entry-content :lang(jv-Java), .entry-content [lang="jv"] { font-family: var(--font-java); line-height: 2.1; }
.entry-content .alignwide { max-width: min(1040px, 94vw); margin-inline: 50%; transform: translateX(-50%); width: min(1040px, 94vw); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: 50%; transform: translateX(-50%); }
.entry-content .alignleft { float: left; margin: 0.3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.5em; max-width: 50%; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content .jv-embed-block { margin-block: 2em; }
.entry-content .wp-block-gallery a { cursor: zoom-in; }
.has-drop-cap:not(:focus)::first-letter { font-family: var(--font-display); color: var(--gold-primary); font-size: 4.2em; line-height: 0.9; margin: 0.06em 0.12em 0 0; }

/* Reader mode: quieter long-read details */
[data-reader="sepia"] .entry-content blockquote { font-family: var(--font-read); font-style: italic; font-size: 1.25rem; }
[data-reader="sepia"] .entry-content h2, [data-reader="sepia"] .entry-content h3 { letter-spacing: 0.5px; }
[data-reader="sepia"] .entry-content ::selection { background: #e2c98f; color: #2e2416; }
[data-reader="sepia"] .site-footer { border-top-color: var(--border-gold); }

/* ───────── Lead media extras ───────── */
.jv-audio { margin-top: 1rem; border: 1px solid var(--border-gold); background: var(--bg-card); padding: 1rem; border-radius: 40px; }
.jv-audio audio { width: 100%; height: 40px; display: block; }
.jv-embed--native video { background: #000; }
@media (hover: hover) { .jv-gallery__item a:hover img { transform: scale(1.06); } }
.jv-gallery__item a { cursor: zoom-in; }

/* ───────── Entry footer ───────── */
.entry-footer { max-width: var(--measure); margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border-gold); }
.entry-credit { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.entry-credit strong { color: var(--gold-light); font-weight: 600; }
.entry-terms { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.entry-terms a {
	display: inline-block; padding: 4px 12px; border: 1px solid var(--border-gold);
	font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; color: var(--text-muted);
	transition: color 0.3s ease, border-color 0.3s ease;
}
.entry-terms a:hover { color: var(--gold-primary); border-color: var(--gold-primary); }
.entry-footer::after { /* kawung end-mark */
	content: ""; display: block; width: 22px; height: 22px; margin: 2.5rem auto 0; opacity: 0.55;
	background: var(--gold-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cellipse cx='12' cy='6.5' rx='3' ry='4.5'/%3E%3Cellipse cx='12' cy='17.5' rx='3' ry='4.5'/%3E%3Cellipse cx='6.5' cy='12' rx='4.5' ry='3'/%3E%3Cellipse cx='17.5' cy='12' rx='4.5' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.5'%3E%3Cellipse cx='12' cy='6.5' rx='3' ry='4.5'/%3E%3Cellipse cx='12' cy='17.5' rx='3' ry='4.5'/%3E%3Cellipse cx='6.5' cy='12' rx='4.5' ry='3'/%3E%3Cellipse cx='17.5' cy='12' rx='4.5' ry='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-navigation a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--border-gold); background: var(--bg-card); text-decoration: none; height: 100%; transition: border-color 0.3s ease; }
.post-navigation a:hover { border-color: var(--gold-primary); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { display: block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.post-navigation .nav-title { font-family: var(--font-heading); color: var(--gold-light); font-size: 0.95rem; }
.related { margin-top: 2rem; }

/* ───────── Tabs ───────── */
.jv-tabs__list {
	display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin: -1rem 0 2.5rem;
}
.jv-tabs__tab {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
	background: transparent; border: 1px solid var(--border-gold); color: var(--text-muted);
	font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
	padding: 10px 20px; position: relative; transition: color 0.3s ease, border-color 0.3s ease;
}
.jv-tabs__tab::after {
	content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px;
	background: var(--gold-primary); transform: scaleX(0); transition: transform 0.35s var(--ease);
}
.jv-tabs__tab:hover { color: var(--gold-light); }
.jv-tabs__tab[aria-selected="true"] { color: var(--gold-primary); border-color: var(--gold-primary); }
.jv-tabs__tab[aria-selected="true"]::after { transform: scaleX(1); }
.jv-tabs__panel { outline: none; }
.jv-tabs__panel + .jv-tabs__panel { margin-top: 4rem; }
.jv-tabs__fallback-title { font-family: var(--font-heading); color: var(--gold-light); font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 1.5rem; text-align: center; }
.jv-tabs.is-enhanced .jv-tabs__fallback-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.jv-tabs.is-enhanced .jv-tabs__panel + .jv-tabs__panel { margin-top: 0; }
.jv-tabs.is-enhanced .jv-tabs__panel:not([hidden]) { animation: jv-fade-up 0.45s var(--ease); }
@keyframes jv-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jv-more { text-align: center; margin-top: 2.5rem; }

/* ───────── Carousel (native scroll-snap = compositor-thread scrolling) ───────── */
.jv-carousel { position: relative; }
.jv-carousel__track {
	list-style: none; display: grid; grid-auto-flow: column;
	grid-auto-columns: calc((100% - 4rem) / 3); gap: 2rem;
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding: 10px 2px 24px; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent;
	-webkit-overflow-scrolling: touch;
}
.jv-carousel__track::-webkit-scrollbar { height: 4px; }
.jv-carousel__track::-webkit-scrollbar-thumb { background: var(--gold-dark); }
.jv-carousel__slide { scroll-snap-align: start; display: flex; }
.jv-carousel__slide > .card { width: 100%; }
.jv-carousel__controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.jv-carousel__btn {
	width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
	background: transparent; border: 1px solid var(--gold-primary); color: var(--gold-primary); font-size: 1.1rem;
	transition: background-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.jv-carousel__btn:hover:not(:disabled) { background: var(--gold-primary); color: var(--bg-black); }
.jv-carousel__btn:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 900px) { .jv-carousel__track { grid-auto-columns: calc((100% - 2rem) / 1.6); } }
@media (max-width: 600px) { .jv-carousel__track { grid-auto-columns: 85%; gap: 1rem; } }

/* ───────── Archive filters (native <details>) ───────── */
.jv-filters { border: 1px solid var(--border-gold); background: var(--bg-card); margin-bottom: 2.5rem; }
.jv-filters summary {
	display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
	padding: 1rem 1.25rem; font-family: var(--font-heading); letter-spacing: 2px; text-transform: uppercase;
	font-size: 0.85rem; color: var(--gold-light);
}
.jv-filters summary::-webkit-details-marker { display: none; }
.jv-filters summary::after {
	content: ""; margin-left: auto; width: 8px; height: 8px;
	border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
	transform: rotate(45deg); transition: transform 0.3s var(--ease);
}
.jv-filters[open] summary::after { transform: rotate(225deg); }
.jv-filters__count { font-family: var(--font-body); font-size: 0.7rem; letter-spacing: 1px; background: var(--gold-primary); color: var(--bg-black); padding: 2px 8px; }
/* Smooth height animation where supported (Chromium 131+); instant elsewhere. */
@supports (interpolate-size: allow-keywords) {
	.jv-filters { interpolate-size: allow-keywords; }
	.jv-filters::details-content { height: 0; overflow: clip; transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
	.jv-filters[open]::details-content { height: auto; }
}
.jv-filters__form {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 1.5rem; align-items: end;
	padding: 0 1.25rem 1.25rem; border-top: 1px solid var(--border-gold); padding-top: 1.25rem;
}
.jv-field label { display: block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.jv-field select, .search-field, .comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; background: var(--bg-black); color: var(--text-light);
	border: 1px solid var(--border-gold); padding: 10px 12px; font: inherit; font-size: 0.9rem; border-radius: 0;
}
.jv-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-primary) 50%), linear-gradient(135deg, var(--gold-primary) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.jv-field select:focus, .search-field:focus, .comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold-primary); outline: none; box-shadow: 0 0 0 1px var(--gold-primary); }
.jv-filters__actions .btn-gold { width: 100%; }

/* ───────── Search ───────── */
.search-form { display: flex; max-width: 520px; margin: 1.5rem auto; }
.search-form .search-field { flex: 1; }
.search-submit { width: 48px; display: grid; place-items: center; border: 1px solid var(--gold-primary); background: var(--gold-primary); color: var(--bg-black); cursor: pointer; font-size: 1.1rem; }

/* ───────── Pagination ───────── */
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 10px;
	border: 1px solid var(--border-gold); color: var(--text-muted); text-decoration: none; font-size: 0.9rem;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--gold-primary); color: var(--gold-primary); }
.jv-empty { text-align: center; color: var(--text-muted); padding: 2rem 0; }
.jv-empty h2 { font-family: var(--font-heading); color: var(--gold-light); margin-bottom: 0.5rem; }
.jv-404__mark { width: 64px; height: 64px; margin: 0 auto 1rem; color: var(--gold-primary); }

/* ───────── Comments ───────── */
.comments-area { max-width: var(--measure); margin: 3rem auto 4rem; padding: 0 var(--gutter); }
.comments-title, .comment-reply-title { font-family: var(--font-heading); color: var(--gold-primary); font-size: 1.4rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-list .children { list-style: none; padding-left: 1.5rem; border-left: 1px solid var(--border-gold); }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.12); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author .avatar { border-radius: 50%; border: 1px solid var(--border-gold); }
.comment-metadata { font-size: 0.75rem; margin: 0.25rem 0 0.75rem; }
.comment-metadata a { color: var(--text-faint); text-decoration: none; }
.comment-content { color: var(--text-light); }
.reply a { font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; }
.comment-form > p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; }

/* ───────── Footer ───────── */
.site-footer {
	border-top: 1px solid var(--border-gold); background: var(--bg-deep);
	padding: 40px var(--gutter) 30px; text-align: center; margin-top: 2rem;
}
.footer-logo { font-family: var(--font-display); font-weight: 700; color: var(--gold-primary); font-size: 1.6rem; margin-bottom: 1rem; }
.footer-links { list-style: none; margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--gold-primary); }
.copyright { color: var(--text-faint); font-size: 0.75rem; letter-spacing: 1px; padding-bottom: 50px; }

/* ───────── Lightbox (<dialog>, GPU transforms only) ───────── */
.jv-lightbox {
	position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none;
	margin: 0; padding: 0; border: 0; background: rgba(5, 5, 7, 0.985); color: var(--text-light);
	overscroll-behavior: contain;
}
.jv-lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.jv-lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: jv-fade 0.25s ease; }
@keyframes jv-fade { from { opacity: 0; } to { opacity: 1; } }
.jv-lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 2px; color: var(--gold-light); }
.jv-lightbox__stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y pinch-zoom; padding: 0 64px; }
.jv-lightbox__img {
	max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain;
	border: 1px solid var(--border-gold); transition: transform 0.3s var(--ease), opacity 0.3s ease; will-change: transform;
}
.jv-lightbox__img.is-loading { opacity: 0.3; }
.jv-lightbox__caption { text-align: center; padding: 10px 16px 18px; font-size: 0.85rem; color: var(--text-muted); min-height: 3em; }
.jv-lightbox__btn {
	width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; font-size: 1.2rem;
	background: rgba(10, 10, 12, 0.8); border: 1px solid var(--gold-primary); color: var(--gold-primary);
}
.jv-lightbox__btn:hover { background: var(--gold-primary); color: var(--bg-black); }
.jv-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.jv-lightbox__nav--prev { left: 10px; }
.jv-lightbox__nav--next { right: 10px; }
@media (max-width: 600px) {
	.jv-lightbox__stage { padding: 0 8px; }
	.jv-lightbox__nav { top: auto; bottom: 8px; transform: none; }
}
html.has-lightbox { overflow: hidden; }

/* ───────── Responsive ───────── */
@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: 1; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; max-width: 100%; }
}

/* ═════════ Knowledge layer: glossary, timeline, sheet ═════════ */

/* Inline glossary terms */
.entry-content a.jv-term { color: inherit; text-decoration: underline dotted var(--gold-primary); text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: help; }
.entry-content a.jv-term:hover, .entry-content a.jv-term[aria-expanded="true"] { color: var(--gold-primary); background: rgba(212, 175, 55, 0.12); }

/* Popover / bottom card */
.jv-pop { position: absolute; z-index: 10000; width: min(340px, calc(100vw - 16px)); background: var(--bg-card); color: var(--text-light); border: 1px solid var(--gold-primary); border-radius: 10px; padding: 1rem 1.1rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55); font-family: var(--font-body); }
.jv-pop:focus { outline: none; }
.jv-pop.is-sheet { position: fixed; z-index: 10002; left: 8px; right: 8px; bottom: 8px; top: auto; width: auto; border-radius: 14px; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
.jv-pop__title { font-family: var(--font-heading); color: var(--gold-primary); font-size: 1.1rem; margin: 0 0 0.4rem; }
.jv-pop__jv { font-family: var(--font-java); font-size: 1.2rem; color: var(--gold-light); margin-left: 0.4rem; }
.jv-pop__body { margin: 0 0 0.8rem; font-size: 0.95rem; line-height: 1.55; }
.jv-pop__foot { display: flex; gap: 1rem; align-items: center; margin: 0; font-size: 0.85rem; }
.jv-pop__foot a { margin-left: auto; font-weight: 600; }
.jv-say { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 40px; min-width: 40px; padding: 0 0.7rem; background: transparent; border: 1px solid var(--border-gold); color: var(--gold-primary); border-radius: 20px; font: inherit; cursor: pointer; }
.jv-say:hover, .jv-say[aria-pressed="true"] { background: var(--gold-primary); color: var(--bg-black); }
.jv-say .icon { width: 18px; height: 18px; }

/* Glossary page */
.jv-gl-tools { max-width: 900px; margin: 0 auto 2rem; padding-inline: var(--gutter); }
.jv-gl-filter input { width: 100%; padding: 0.9rem 1rem; background: var(--bg-card); color: var(--text-light); border: 1px solid var(--border-gold); font: inherit; border-radius: 4px; }
.jv-gl-filter input:focus { border-color: var(--gold-primary); outline: none; box-shadow: 0 0 0 1px var(--gold-primary); }
.jv-gl-letters { max-width: 900px; margin: 0 auto 2rem; padding-inline: var(--gutter); }
.jv-gl-letters ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.jv-gl-letters a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--border-gold); color: var(--gold-primary); text-decoration: none; font-family: var(--font-heading); border-radius: 4px; }
.jv-gl-letters a:hover { background: var(--gold-primary); color: var(--bg-black); }
.jv-gl-group { max-width: 900px; margin: 0 auto 2.5rem; padding-inline: var(--gutter); }
.jv-gl-group > h2 { font-family: var(--font-display); color: var(--gold-primary); border-bottom: 1px solid var(--border-gold); padding-bottom: 0.4rem; }
.jv-gl-list { margin: 0; }
.jv-gl-entry { padding: 1rem 0; border-bottom: 1px solid rgba(212, 175, 55, 0.15); }
.jv-gl-entry dt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0; }
.jv-gl-term { font-family: var(--font-heading); font-size: 1.2rem; color: var(--text-light); }
.jv-gl-aksara { font-family: var(--font-java); color: var(--gold-light); font-size: 1.3rem; }
.jv-gl-entry dd { margin: 0.4rem 0 0; color: var(--text-muted); line-height: 1.6; }
.jv-gl-more { display: inline-block; margin-left: 0.4rem; font-size: 0.85rem; }

/* Timeline = a tree. Newest at the crown, oldest at the roots, trunk centred. */
.jv-tree { --wood-a: #4a3010; --wood-b: #8c6426; --leaf-1: #c9a43a; --leaf-2: #8fa860; --leaf-3: #e2c46a; --leaf: var(--gold-primary); --half: 140px; max-width: 1100px; margin: 0 auto; padding: 1rem var(--gutter) 3rem; text-align: center; }
[data-reader="sepia"] .jv-tree { --wood-a: #4a2f08; --wood-b: #8a5a14; --leaf-1: #8a6a1c; --leaf-2: #4f6b2c; --leaf-3: #a98030; }
.jv-tree__crown svg { width: min(340px, 100%); }
.jv-tree__roots svg { width: min(520px, 100%); }
.jv-tree__crown, .jv-tree__roots { display: grid; justify-items: center; gap: 0.4rem; color: var(--text-faint); }
.jv-tree__crown svg, .jv-tree__roots svg { display: block; max-width: 100%; height: auto; }
.jv-gun-fill { fill: color-mix(in srgb, var(--leaf-2) 16%, var(--bg-black)); }
.jv-gun-line { fill: none; stroke: var(--gold-primary); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.jv-gun-line--in { stroke-width: 1; opacity: 0.55; }
.jv-gun-vein { stroke: color-mix(in srgb, var(--wood-b) 70%, var(--leaf-3)); stroke-width: 2; opacity: 0.8; }
.jv-canopy .c0 { fill: var(--leaf-1); }
.jv-canopy .c1 { fill: var(--leaf-2); }
.jv-canopy .c2 { fill: var(--leaf-3); }
.jv-roots { fill: color-mix(in srgb, var(--wood-a) 55%, var(--wood-b)); }
.jv-tree__cap { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-muted); }
.jv-tree__crown { margin-bottom: -2px; gap: 0.6rem; }
.jv-tree__crown .jv-tree__cap { order: -1; }
.jv-tree__crown svg { margin-bottom: -4px; }
.jv-tree__roots { margin-top: -4px; }

.jv-tree__body { position: relative; }
.jv-tree__trunk { position: absolute; inset: 0; background: radial-gradient(ellipse 7px 12px at 44% 9%, rgba(0,0,0,.42) 0 45%, transparent 75%), radial-gradient(ellipse 6px 10px at 57% 21%, rgba(0,0,0,.38) 0 45%, transparent 75%), radial-gradient(ellipse 8px 13px at 43% 37%, rgba(0,0,0,.4) 0 45%, transparent 75%), radial-gradient(ellipse 6px 11px at 58% 52%, rgba(0,0,0,.38) 0 45%, transparent 75%), radial-gradient(ellipse 9px 15px at 45% 68%, rgba(0,0,0,.4) 0 45%, transparent 75%), radial-gradient(ellipse 7px 12px at 57% 82%, rgba(0,0,0,.36) 0 45%, transparent 75%), repeating-linear-gradient(90deg, rgba(0,0,0,.26) 0 1px, transparent 1px 5px, rgba(255,255,255,.05) 5px 6px, transparent 6px 11px), linear-gradient(90deg, #3d2709 0, var(--wood-a) 12%, var(--wood-b) 40%, #b98a3a 52%, var(--wood-b) 64%, var(--wood-a) 88%, #3d2709 100%); clip-path: polygon(calc(50% - 17.0px) 0%, calc(50% - 18.5px) 6%, calc(50% - 18.0px) 14%, calc(50% - 20.5px) 23%, calc(50% - 20.0px) 32%, calc(50% - 23.5px) 42%, calc(50% - 23.0px) 52%, calc(50% - 27.0px) 62%, calc(50% - 26.5px) 72%, calc(50% - 30.5px) 82%, calc(50% - 33.0px) 91%, calc(50% - 37.0px) 100%, calc(50% + 37.0px) 100%, calc(50% + 35.0px) 94%, calc(50% + 32.0px) 87%, calc(50% + 29.0px) 77%, calc(50% + 27.5px) 67%, calc(50% + 26.0px) 57%, calc(50% + 22.5px) 47%, calc(50% + 22.0px) 37%, calc(50% + 19.5px) 27%, calc(50% + 19.5px) 17%, calc(50% + 18.0px) 8%, calc(50% + 17.0px) 0%); pointer-events: none; }

.jv-tree__era { position: relative; padding-top: 0.5rem; }
.jv-tree__era-head { position: relative; z-index: 2; display: inline-block; margin: 1.5rem auto 0.5rem; padding: 0.5rem 1.4rem; background: var(--bg-black); border: 1px solid var(--gold-primary); border-radius: 30px; }
.jv-tree__era-head h2 { margin: 0; font-family: var(--font-heading); font-size: 1rem; letter-spacing: 1px; color: var(--gold-primary); }
.jv-tree__era-head p { margin: 0; font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }

.jv-tree__list { list-style: none; margin: 0; padding: 0; }
.jv-tl-item { position: relative; min-height: 130px; display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--half) * 2) minmax(0, 1fr); align-items: start; margin: 0 0 2.2rem; text-align: left; }
.jv-tl-yearbar { margin: 0 0 0.2rem; }
.jv-tl-year { display: inline-block; padding: 0.15rem 0.8rem; font-family: var(--font-heading); font-size: 0.95rem; letter-spacing: 1px; line-height: 1.3; color: var(--bg-black); background: var(--leaf); border-radius: 20px; font-weight: 700; }

/* Branch: forked SVG limb. Its tip meets the stem corner of the leaf card. */
.jv-tl-branch { position: absolute; top: -0.2rem; width: 150px; height: 94px; color: var(--leaf); overflow: visible; pointer-events: none; }
.jv-tl-item.is-left .jv-tl-branch { right: calc(50% - 10px); }
.jv-tl-item.is-right .jv-tl-branch { left: calc(50% - 10px); transform: scaleX(-1); }
.jv-tl-item--kingdom { --leaf: var(--gold-primary); }
.jv-tl-item--event { --leaf: #d98a6a; }
.jv-tl-item--heritage { --leaf: #98b878; }
[data-reader="sepia"] .jv-tl-item--event { --leaf: #9a4a2a; }
[data-reader="sepia"] .jv-tl-item--heritage { --leaf: #4f6b2c; }

/* The card is a leaf: stem corner towards the trunk, tip corner away from it, midrib between them. */
.jv-tl-card { position: relative; grid-row: 1; width: min(100%, 400px); display: grid; gap: 0.35rem; padding: 1.2rem 2.4rem 1.3rem 1.8rem; min-height: 150px; align-content: center; border: 1.5px solid var(--leaf); background: linear-gradient(150deg, color-mix(in srgb, var(--leaf) 16%, var(--bg-card)), var(--bg-card) 70%); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.jv-tl-item.is-left .jv-tl-card { grid-column: 1; justify-self: end; border-radius: 80px 4px 80px 4px; padding: 1.2rem 1.8rem 1.3rem 2.6rem; }
.jv-tl-item.is-right .jv-tl-card { grid-column: 3; justify-self: start; border-radius: 4px 80px 4px 80px; padding: 1.2rem 2.6rem 1.3rem 1.8rem; }
.jv-tl-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0.2; }
.jv-tl-item.is-left .jv-tl-card::before { background: linear-gradient(to bottom left, transparent calc(50% - 0.5px), var(--leaf) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.jv-tl-item.is-right .jv-tl-card::before { background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--leaf) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
.jv-tl-card:hover, .jv-tl-card:focus-within { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--leaf); }
.jv-tl-card > * { margin: 0; position: relative; }
.jv-tl-head { display: flex; gap: 0.8rem; align-items: center; }
.jv-tl-thumb { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2px solid var(--leaf); background: var(--bg-deep); }
.jv-tl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-tl-kind { display: flex; align-items: center; gap: 0.4rem; font-size: 0.68rem; letter-spacing: 2px; text-transform: uppercase; color: var(--leaf); margin: 0 0 0.15rem; }
.jv-tl-kind .icon { width: 14px; height: 14px; }
.jv-tl-title { margin: 0; font-family: var(--font-heading); font-size: 1.15rem; line-height: 1.25; }
.jv-tl-link { color: var(--text-light); text-decoration: none; }
.jv-tl-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.jv-tl-card:hover .jv-tl-link { color: var(--leaf); }
.jv-tl-aksara { font-family: var(--font-java); color: var(--gold-light); font-size: 1.1rem; margin: 0.1rem 0 0; }
.jv-tl-summary { color: var(--text-muted); line-height: 1.5; font-size: 0.88rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jv-tl-more { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--leaf); }
.jv-tl-more .icon { width: 14px; height: 14px; flex: none; }
.jv-tl-item.is-flash .jv-tl-card { animation: jv-flash 1.8s ease; }
@keyframes jv-flash { 0%, 60% { box-shadow: 0 0 0 4px var(--leaf); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Leaves ease in as they scroll into view (JS adds data-reveal; no JS = all visible) */
.jv-tree[data-reveal] .jv-tl-item { opacity: 0; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.jv-tree[data-reveal] .jv-tl-item.is-left { transform: translateX(-18px); }
.jv-tree[data-reveal] .jv-tl-item.is-right { transform: translateX(18px); }
.jv-tree[data-reveal] .jv-tl-item.is-in { opacity: 1; transform: none; }

/* Article ↔ timeline links */
.jv-event-context { max-width: var(--measure); margin: 2rem auto; }
.jv-event-cta { text-align: center; }
.jv-event-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.jv-event-nav a { display: block; padding: 0.9rem 1rem; border: 1px solid var(--border-gold); border-radius: 8px; text-decoration: none; color: var(--text-light); min-height: 48px; }
.jv-event-nav a:hover { border-color: var(--gold-primary); }
.jv-event-nav__next { text-align: right; grid-column: 2; }
.jv-event-nav .nav-label { display: block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-primary); }
.jv-event-all { text-align: center; margin-top: 1rem; font-size: 0.9rem; }
.jv-on-timeline { max-width: var(--measure); margin: 0 auto 2rem; padding: 0.9rem 1.1rem; border-left: 3px solid var(--gold-primary); background: var(--bg-card); border-radius: 0 8px 8px 0; font-size: 0.9rem; }
.jv-on-timeline__label { margin: 0 0 0.3rem; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-primary); }

/* Mobile bottom sheet (dialog) */
.jv-sheet { margin: auto 0 0; padding: 0; width: 100%; max-width: none; max-height: 85dvh; border: 0; border-top: 1px solid var(--gold-primary); border-radius: 18px 18px 0 0; background: var(--bg-card); color: var(--text-light); overflow: auto; overscroll-behavior: contain; }
.jv-sheet[open] { animation: jv-sheet-in 0.3s var(--ease); }
.jv-sheet::backdrop { background: rgba(0, 0, 0, 0.6); }
@keyframes jv-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.jv-sheet__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem 0.5rem; position: sticky; top: 0; background: var(--bg-card); }
.jv-sheet__brand { font-family: var(--font-display); color: var(--gold-primary); }
.jv-sheet__close { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; color: var(--text-light); cursor: pointer; }
.jv-sheet__close .icon { width: 26px; height: 26px; }
.jv-sheet .search-form { margin: 0.5rem 1.2rem 1rem; max-width: none; }
.jv-sheet__nav { padding: 0 1.2rem calc(1.5rem + env(safe-area-inset-bottom)); }
.jv-sheet__nav ul { list-style: none; margin: 0; padding: 0; }
.jv-sheet__link, .jv-sheet__group summary { display: flex; align-items: center; min-height: 52px; color: var(--text-light); text-decoration: none; font-family: var(--font-heading); letter-spacing: 1px; border-bottom: 1px solid rgba(212, 175, 55, 0.18); }
.jv-sheet__link[aria-current] { color: var(--gold-primary); }
.jv-sheet__group summary { cursor: pointer; justify-content: space-between; list-style: none; }
.jv-sheet__group summary::-webkit-details-marker { display: none; }
.jv-sheet__group summary::after { content: "+"; color: var(--gold-primary); font-size: 1.4rem; }
.jv-sheet__group[open] summary::after { content: "\2212"; }
.jv-sheet__group ul { padding-left: 1rem; }
.jv-sheet__group .jv-sheet__link { font-family: var(--font-body); letter-spacing: 0; }
html.jv-sheet-open { overflow: hidden; }

@media (max-width: 720px) {
	/* Narrow screens: trunk moves to the left edge, every leaf opens to the right. */
	.jv-tree { --half: 44px; text-align: left; }
	.jv-tree__crown, .jv-tree__roots { justify-items: start; padding-left: 0; }
	.jv-tree__crown svg { width: 130px; transform: translateX(calc(var(--half) - 50%)); }
	.jv-tree__roots svg { width: 170px; transform: translateX(calc(var(--half) - 50%)); }
	.jv-tree__trunk { clip-path: polygon(calc(var(--half) - 10.5px) 0%, calc(var(--half) - 11.5px) 6%, calc(var(--half) - 11.2px) 14%, calc(var(--half) - 12.7px) 23%, calc(var(--half) - 12.4px) 32%, calc(var(--half) - 14.6px) 42%, calc(var(--half) - 14.3px) 52%, calc(var(--half) - 16.7px) 62%, calc(var(--half) - 16.4px) 72%, calc(var(--half) - 18.9px) 82%, calc(var(--half) - 20.5px) 91%, calc(var(--half) - 22.9px) 100%, calc(var(--half) + 22.9px) 100%, calc(var(--half) + 21.7px) 94%, calc(var(--half) + 19.8px) 87%, calc(var(--half) + 18.0px) 77%, calc(var(--half) + 17.1px) 67%, calc(var(--half) + 16.1px) 57%, calc(var(--half) + 13.9px) 47%, calc(var(--half) + 13.6px) 37%, calc(var(--half) + 12.1px) 27%, calc(var(--half) + 12.1px) 17%, calc(var(--half) + 11.2px) 8%, calc(var(--half) + 10.5px) 0%); }
	.jv-tree__era-head { margin-left: 0; }
	.jv-tl-item { grid-template-columns: calc(var(--half) * 2) minmax(0, 1fr); min-height: 0; }
	.jv-tl-item.is-left .jv-tl-card, .jv-tl-item.is-right .jv-tl-card { grid-column: 2; grid-row: 1; justify-self: stretch; width: auto; grid-row: 1; border-radius: 4px 60px 4px 60px; padding: 1.1rem 2rem 1.2rem 1.3rem; }
	.jv-tl-item.is-left .jv-tl-card::before, .jv-tl-item.is-right .jv-tl-card::before { background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), var(--leaf) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)); }
	.jv-tl-item.is-left .jv-tl-branch, .jv-tl-item.is-right .jv-tl-branch { left: calc(var(--half) - 8px); right: auto; transform: scaleX(-1); width: 74px; height: 46px; top: 0; }
	.jv-tree[data-reveal] .jv-tl-item.is-left, .jv-tree[data-reveal] .jv-tl-item.is-right { transform: translateX(14px); }
	.jv-event-nav { grid-template-columns: 1fr; }
	.jv-event-nav__next { grid-column: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
	.jv-sheet[open], .jv-tl-item.is-flash .jv-tl-card { animation: none; }
	.jv-tl-card { transition: none; }
}

/* Root inscription: free text under the roots (Sanskrit, Kawi, aksara Jawa…). System fonts only. */
.jv-root-text { margin: 1.4rem auto 0; max-width: 34rem; text-align: center; }
.jv-root-text::before { content: ""; display: block; width: 64px; height: 2px; margin: 0 auto 1rem; background: linear-gradient(90deg, transparent, var(--gold-primary), transparent); }
.jv-root-text__script { margin: 0; font-family: var(--font-heading); font-size: clamp(1.3rem, 4vw, 1.8rem); line-height: 1.6; color: var(--gold-light); }
.jv-root-text__script.is-sa { font-family: "Noto Serif Devanagari", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", serif; }
.jv-root-text__script.is-jv-Java { font-family: var(--font-java); }
.jv-root-text__script.is-kaw { font-family: var(--font-java), "Noto Serif", serif; }
.jv-root-text figcaption { margin-top: 0.6rem; font-style: italic; color: var(--text-muted); font-size: 0.95rem; }
@media (max-width: 720px) { .jv-root-text { text-align: left; margin-left: 0; } .jv-root-text::before { margin-left: 0; } }

.jv-archive-more { margin: 1rem 0 0; font-size: 0.9rem; }
.jv-archive-more a { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.jv-archive-more .icon { width: 14px; height: 14px; }

/* ═════════ Culture page ═════════ */
.jv-culture { padding-bottom: 4rem; }
.jv-culture-hero { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 8.5rem var(--gutter) 4rem; }
.jv-culture-hero__pattern { position: absolute; inset: 0; z-index: -1; color: var(--gold-primary); opacity: 0.2; -webkit-mask-image: linear-gradient(#000 35%, transparent 95%); mask-image: linear-gradient(#000 35%, transparent 95%); }
.jv-culture-hero__pattern svg { display: block; }
.jv-culture-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 38%, rgba(10, 10, 12, 0.88) 0, rgba(10, 10, 12, 0.5) 45%, transparent 75%); }
[data-reader="sepia"] .jv-culture-hero::after { background: radial-gradient(ellipse at 50% 38%, rgba(244, 236, 216, 0.9) 0, rgba(244, 236, 216, 0.55) 45%, transparent 75%); }
.jv-culture-hero__mark { width: 44px; height: 44px; color: var(--gold-primary); margin: 0 auto 0.6rem; display: block; }
.jv-culture-hero__title { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 9vw, 5rem); color: var(--gold-primary); letter-spacing: 3px; line-height: 1.1; }
.jv-culture-hero__aksara { margin: 0.4rem 0 0; font-family: var(--font-java); font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--gold-light); }
.jv-culture-hero__intro { max-width: 58ch; margin: 0 auto 1.6rem; color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }
.jv-culture-hero__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.jv-culture-hero__stats li { padding: 0.35rem 0.9rem; border: 1px solid var(--border-gold); border-radius: 20px; font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); background: rgba(10, 10, 12, 0.55); }
[data-reader="sepia"] .jv-culture-hero__stats li { background: rgba(244, 236, 216, 0.7); }

.jv-section { max-width: var(--container); margin: 0 auto; padding: 3rem var(--gutter) 0; }
.jv-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.jv-section__title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem; font-family: var(--font-heading); font-size: clamp(1.3rem, 3.5vw, 1.8rem); color: var(--gold-primary); letter-spacing: 1px; }
.jv-section__head .jv-section__title { margin: 0; }
.jv-section__title .icon { width: 24px; height: 24px; }
.jv-section__all { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-size: 0.85rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
.jv-section__all .icon { width: 14px; height: 14px; }

/* Pillars */
.jv-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.2rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.jv-pillar { position: relative; display: grid; gap: 0.4rem; align-content: end; min-height: 260px; padding: 5.4rem 1.4rem 1.2rem; overflow: hidden; text-decoration: none; color: var(--text-light); border: 1px solid var(--border-gold); border-radius: 120px 120px 10px 10px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold-primary) 14%, var(--bg-card)), var(--bg-card) 70%); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.jv-pillar:hover, .jv-pillar:focus-visible { transform: translateY(-5px); border-color: var(--gold-primary); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.jv-pillar__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; z-index: 0; transition: opacity 0.3s, transform 0.6s var(--ease); }
.jv-pillar:hover .jv-pillar__img { opacity: 0.55; transform: scale(1.05); }
.jv-pillar.has-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, var(--bg-card) 95%); }
.jv-pillar > * { position: relative; z-index: 1; }
.jv-pillar > .jv-pillar__img { position: absolute; z-index: 0; }
.jv-pillar__no { position: absolute; top: 1.6rem; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-size: 2.6rem; color: var(--gold-primary); opacity: 0.85; line-height: 1; }
.jv-pillar__name { font-family: var(--font-heading); font-size: 1.35rem; color: var(--text-light); }
.jv-pillar__desc { font-size: 0.88rem; line-height: 1.5; color: var(--text-muted); }
.jv-pillar__go { justify-self: end; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--gold-primary); border-radius: 50%; color: var(--gold-primary); }
.jv-pillar:hover .jv-pillar__go { background: var(--gold-primary); color: var(--bg-black); }
.jv-pillar__go .icon { width: 16px; height: 16px; }

/* Featured story: image in an arch */
.jv-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: center; }
.jv-feature__media { display: block; aspect-ratio: 4 / 5; max-height: 520px; overflow: hidden; border-radius: 999px 999px 12px 12px; border: 2px solid var(--gold-primary); box-shadow: 0 0 0 8px var(--bg-black), 0 0 0 9px var(--border-gold); background: var(--bg-deep); }
.jv-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jv-feature__eyebrow { margin: 0 0 0.6rem; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-faint); }
.jv-feature__title { margin: 0; font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; }
.jv-feature__title a { color: var(--text-light); text-decoration: none; }
.jv-feature__title a:hover { color: var(--gold-primary); }
.jv-feature__aksara { margin: 0.4rem 0 0; font-family: var(--font-java); font-size: 1.5rem; color: var(--gold-light); }
.jv-feature__excerpt { margin: 1rem 0 1.4rem; color: var(--text-muted); font-size: 1.05rem; line-height: 1.75; max-width: 52ch; }

/* Rails */
.jv-rail { display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.4rem 0.2rem 1.2rem; scrollbar-width: thin; scrollbar-color: var(--gold-dark) transparent; overscroll-behavior-x: contain; }
.jv-rail > .card { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }
.jv-rail:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-radius: 6px; }

/* Words */
.jv-words__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.jv-words__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border: 1px solid var(--border-gold); border-radius: 30px 6px 30px 6px; text-decoration: none; font-family: var(--font-heading); color: var(--text-light); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.jv-words__list a:hover, .jv-words__list a:focus-visible { background: var(--gold-primary); color: var(--bg-black); border-color: var(--gold-primary); }

@media (max-width: 600px) {
	.jv-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
	.jv-pillar { min-height: 200px; padding: 4.2rem 0.9rem 0.9rem; border-radius: 80px 80px 8px 8px; }
	.jv-pillar__no { font-size: 1.9rem; top: 1.2rem; }
	.jv-pillar__name { font-size: 1.1rem; }
	.jv-pillar__desc { display: none; }
}
@media (max-width: 820px) {
	.jv-culture-hero { padding-top: 6.5rem; }
	.jv-feature { grid-template-columns: 1fr; gap: 1.6rem; }
	.jv-feature__media { max-width: 340px; margin: 0 auto; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.jv-pillar, .jv-pillar__img { transition: none; }
}
