/* ==========================================================================
   House of Samida — Dedicated Article Stylesheet
   Editorial Paper Reading Sheet on Deep Forest Night Register
   Strictly adheres to DS5 (One Rail) — boundaries align with the HoS logo.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reading Progress Bar (Fixed Top)
   -------------------------------------------------------------------------- */
.hos-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	z-index: 999;
	background: transparent;
	pointer-events: none;
}

.hos-reading-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--hos-night-leaf), var(--hos-night-resin));
	transition: width 0.08s ease-out;
}

/* --------------------------------------------------------------------------
   2. Article Shell & Night Header (Aligned with HoS Logo Margin)
   -------------------------------------------------------------------------- */
.hos-article {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding-bottom: clamp(64px, 10vw, 120px);
	box-sizing: border-box;
}

/* Header boundaries match the site logo rail directly */
.hos-article .hos-pagehead {
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
	margin-top: clamp(16px, 3vw, 32px);
	margin-bottom: clamp(28px, 4.5vw, 48px);
	padding-bottom: 0;
	border-bottom: none;
}

.hos-article__back {
	margin-bottom: var(--hos-4);
}

.hos-article__back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--hos-night-muted);
	text-decoration: none;
	transition: color 0.2s ease, transform 0.2s ease;
}

.hos-article__back-link:hover {
	color: var(--hos-night-ink);
	transform: translateX(-2px);
}

.hos-article__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: var(--hos-4);
	padding: 4px 12px;
	border-radius: 100px;
	background: rgba(237, 212, 136, 0.12);
	border: 1px solid rgba(237, 212, 136, 0.28);
	color: var(--hos-night-resin);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.hos-article__eyebrow a {
	color: inherit;
	text-decoration: none;
}

.hos-article__eyebrow a:hover {
	text-decoration: underline;
}

.hos-page:not(.hos-page--plain).hos-article .hos-pagehead__title {
	width: 100%;
	max-width: 26ch;
	font-family: var(--hos-display);
	font-size: clamp(2.35rem, 5.5vw, 3.85rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	color: var(--hos-night-ink);
	text-wrap: balance;
	margin: 0 0 clamp(20px, 3vw, 28px);
}

.hos-article .hos-pagehead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin-top: 0;
	padding-top: clamp(16px, 2.5vw, 22px);
	border-top: 1px solid var(--hos-night-rule);
	color: var(--hos-night-muted);
	font-size: 0.875rem;
}

.hos-article__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hos-article__meta-item svg {
	color: var(--hos-night-leaf);
	opacity: 0.85;
}

.hos-article__meta-divider {
	color: var(--hos-night-rule);
	font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   3. Featured Image (Cinematic Frame aligned with rail)
   -------------------------------------------------------------------------- */
.hos-article > .hos-figure {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 0 clamp(32px, 5vw, 56px) 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
}

.hos-article > .hos-figure img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid rgba(250, 249, 221, 0.12);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	background: var(--hos-night-2);
}

.hos-article > .hos-figure figcaption {
	max-width: var(--hos-measure);
	margin: 12px 0 0 0;
	padding-inline: 4px;
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--hos-night-muted);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   4. The Reading Sheet ("Lembar Baca") — Light Paper Container on Dark Background
      Outer boundaries align strictly with the HoS logo rail.
   -------------------------------------------------------------------------- */
.hos-article__sheet {
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	background: #FAF8EE;
	color: #0A2817;
	border-radius: 8px;
	border: 1px solid rgba(229, 227, 184, 0.65);
	box-shadow:
		0 24px 64px -12px rgba(0, 0, 0, 0.55),
		0 2px 10px rgba(0, 0, 0, 0.25),
		0 0 0 1px rgba(255, 255, 255, 0.05);
	padding: clamp(40px, 5.5vw, 72px) clamp(24px, 5vw, 76px);
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

/* Texture hint: fine tactile paper edge */
.hos-article__sheet::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #1F5E3D 0%, #8C5310 50%, #1F5E3D 100%);
	border-radius: 8px 8px 0 0;
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   5. Prose & Typography inside the Reading Sheet
      Set to comfortable editorial reading measure (70ch) centered in the sheet.
   -------------------------------------------------------------------------- */
.hos-article__sheet .hos-prose {
	display: block !important;
	width: 100% !important;
	max-width: 70ch !important;
	margin-inline: auto !important;
	color: #1E402B !important;
	font-family: var(--hos-ui);
	font-size: 1.0625rem;
	line-height: 1.8;
}

.hos-article__sheet .hos-prose > * {
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	box-sizing: border-box !important;
}

/* Neutralize negative-margin breakouts from main.css on wide blocks */
.hos-article__sheet .hos-prose > :is(.alignwide, .alignfull),
.hos-article__sheet .hos-prose .alignwide,
.hos-article__sheet .hos-prose .alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-inline: 0 !important;
	box-sizing: border-box !important;
}

/* Lead paragraph: authoritative, calm opening voice */
.hos-article__sheet .hos-prose > p:first-of-type {
	font-family: var(--hos-display);
	font-size: clamp(1.2rem, 2vw, 1.38rem);
	line-height: 1.6;
	color: #0A2817;
	letter-spacing: -0.012em;
	margin-bottom: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(10, 40, 23, 0.12);
}

.hos-article__sheet .hos-prose > p:first-of-type strong {
	color: #0A2817;
	font-weight: 600;
}

/* Standard Paragraphs */
.hos-article__sheet .hos-prose p {
	color: #1E402B;
	line-height: 1.8;
	margin-top: 0;
	margin-bottom: 1.45rem;
}

/* Section Headings */
.hos-article__sheet .hos-prose h2 {
	font-family: var(--hos-display);
	font-size: clamp(1.45rem, 2.6vw, 1.85rem);
	line-height: 1.25;
	color: #0A2817;
	letter-spacing: -0.025em;
	margin-top: clamp(36px, 5vw, 56px);
	margin-bottom: 1.15rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(10, 40, 23, 0.12);
	text-wrap: balance;
}

.hos-article__sheet .hos-prose h3 {
	font-family: var(--hos-display);
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	line-height: 1.32;
	color: #0A2817;
	letter-spacing: -0.015em;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

/* Links inside reading sheet */
.hos-article__sheet .hos-prose a {
	color: #1F5E3D;
	text-decoration: underline;
	text-decoration-color: rgba(31, 94, 61, 0.4);
	text-underline-offset: 3px;
	font-weight: 500;
	transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.hos-article__sheet .hos-prose a:hover {
	color: #8C5310;
	text-decoration-color: #8C5310;
}

/* Lists inside reading sheet */
.hos-article__sheet .hos-prose ul,
.hos-article__sheet .hos-prose ol {
	margin: 0 0 1.6rem 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hos-article__sheet .hos-prose ul > li {
	position: relative;
	padding-left: 1.75rem;
	line-height: 1.68;
	color: #1E402B;
}

.hos-article__sheet .hos-prose ul > li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #1F5E3D;
}

.hos-article__sheet .hos-prose ol {
	counter-reset: hos-counter;
}

.hos-article__sheet .hos-prose ol > li {
	position: relative;
	padding-left: 2rem;
	line-height: 1.68;
	color: #1E402B;
	counter-increment: hos-counter;
}

.hos-article__sheet .hos-prose ol > li::before {
	content: counter(hos-counter) ".";
	position: absolute;
	left: 0;
	top: 0;
	font-family: var(--hos-display);
	font-weight: 600;
	color: #1F5E3D;
}

/* Blockquotes / Pull-quotes */
.hos-article__sheet .hos-prose blockquote {
	margin: 2.2rem 0;
	padding: 20px 24px;
	background: #F2F5ED;
	border-left: 4px solid #1F5E3D;
	border-radius: 0 6px 6px 0;
	color: #0A2817;
	font-family: var(--hos-display);
	font-size: 1.15rem;
	font-style: italic;
	line-height: 1.65;
}

.hos-article__sheet .hos-prose blockquote p {
	margin: 0;
	color: inherit;
}

.hos-article__sheet .hos-prose blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--hos-ui);
	font-size: 0.8125rem;
	font-style: normal;
	color: #446350;
}

/* Inline Media inside reading sheet */
.hos-article__sheet .hos-prose figure {
	margin-block: 2.2rem;
}

.hos-article__sheet .hos-prose figure img {
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(10, 40, 23, 0.08);
}

.hos-article__sheet .hos-prose figcaption {
	margin-top: 8px;
	font-size: 0.8125rem;
	color: #446350;
	text-align: center;
	font-style: italic;
}

/* --------------------------------------------------------------------------
   5b. Special WordPress Gutenberg Rich Blocks inside Reading Sheet
   -------------------------------------------------------------------------- */
/* Event Cover Block (Echoes banner / poster) */
.hos-article__sheet .wp-block-cover {
	position: relative !important;
	overflow: hidden !important;
	border-radius: 6px !important;
	background-color: #082818 !important;
	color: #FAF9DD !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: clamp(36px, 6vw, 64px) clamp(20px, 4vw, 40px) !important;
	margin-block: clamp(32px, 5vw, 48px) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
	box-sizing: border-box !important;
}

.hos-article__sheet .wp-block-cover .wp-block-cover__image-background {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	opacity: 0.35 !important;
	z-index: 1 !important;
}

.hos-article__sheet .wp-block-cover .wp-block-cover__background {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-color: #082818 !important;
	opacity: 0.85 !important;
	z-index: 1 !important;
}

.hos-article__sheet .wp-block-cover .wp-block-cover__inner-container {
	position: relative !important;
	z-index: 2 !important;
	width: 100% !important;
	text-align: center !important;
	color: #FAF9DD !important;
}

.hos-article__sheet .wp-block-cover p,
.hos-article__sheet .wp-block-cover strong {
	color: #FAF9DD !important;
}

/* Event Group Callout (e.g. "Ikut Menggema") */
.hos-article__sheet .wp-block-group.has-background {
	border-radius: 6px !important;
	margin-block: clamp(32px, 5vw, 48px) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
	border: 1px solid rgba(250, 249, 221, 0.15) !important;
	box-sizing: border-box !important;
}

.hos-article__sheet .wp-block-group.has-background h2,
.hos-article__sheet .wp-block-group.has-background p {
	color: #FAF9DD !important;
	border-bottom: none !important;
}

.hos-article__sheet .wp-block-group.has-background .wp-block-button__link {
	display: inline-block !important;
	text-decoration: none !important;
	transition: transform 0.2s ease, background 0.2s ease !important;
}

.hos-article__sheet .wp-block-group.has-background .wp-block-button__link:hover {
	transform: translateY(-2px) !important;
	background-color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   6. End of Sheet: Botanical Ornament, Share Actions & Author Card
   -------------------------------------------------------------------------- */
.hos-article__sheet-footer {
	max-width: 70ch;
	margin: clamp(40px, 5.5vw, 64px) auto 0;
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid rgba(10, 40, 23, 0.12);
}

.hos-article__end-ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 32px;
	color: #1F5E3D;
	opacity: 0.7;
}

.hos-article__end-ornament svg {
	display: block;
	flex-shrink: 0;
	color: currentColor;
}

.hos-article__end-ornament::before,
.hos-article__end-ornament::after {
	content: "";
	flex: 1;
	max-width: 80px;
	height: 1px;
	background: rgba(10, 40, 23, 0.15);
}

/* Share Row */
.hos-article__share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	background: #F4F2E4;
	border-radius: 6px;
	border: 1px solid rgba(229, 227, 184, 0.8);
	margin-bottom: 32px;
}

.hos-article__share-label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #0A2817;
	letter-spacing: 0.02em;
}

.hos-article__share-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.hos-article__share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid rgba(10, 40, 23, 0.15);
	background: #FFFFFF;
	color: #0A2817;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hos-article__share-btn:hover {
	background: #1F5E3D;
	color: #FAF9DD;
	border-color: #1F5E3D;
}

.hos-article__share-btn--copy.is-copied {
	background: #0E331E;
	color: #FAF9DD;
	border-color: #0E331E;
}

/* Author / Provenance Card */
.hos-article__author-box {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 20px;
	align-items: start;
	padding: 24px;
	background: #F7F5EB;
	border: 1px solid rgba(10, 40, 23, 0.1);
	border-radius: 6px;
}

.hos-article__author-mark {
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #0A2817;
	color: #FAF9DD;
	flex-shrink: 0;
}

.hos-article__author-mark svg {
	width: 24px;
	height: 24px;
}

.hos-article__author-info {
	display: grid;
	gap: 6px;
}

.hos-article__author-name {
	font-family: var(--hos-display);
	font-size: 1.0625rem;
	color: #0A2817;
	margin: 0;
}

.hos-article__author-desc {
	font-size: 0.875rem;
	line-height: 1.55;
	color: #446350;
	margin: 0;
}

.hos-article__author-links {
	display: flex;
	gap: 16px;
	margin-top: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
}

.hos-article__author-links a {
	color: #1F5E3D;
	text-decoration: none;
}

.hos-article__author-links a:hover {
	color: #8C5310;
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. Onward Navigation outside the sheet (on Deep Forest Night Register)
      Strictly aligns with the site rail / logo boundary
   -------------------------------------------------------------------------- */
.hos-article__foot {
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	max-width: 100% !important;
	gap: var(--hos-6);
	margin: clamp(48px, 7vw, 80px) 0 0 0 !important;
	padding-top: 0 !important;
	border-top: 0 !important;
	box-sizing: border-box !important;
}

.hos-article__all-wrap {
	display: flex;
	justify-content: flex-start;
	margin-bottom: var(--hos-2);
}

.hos-article__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: 100px;
	background: rgba(250, 249, 221, 0.08);
	border: 1px solid var(--hos-night-rule);
	color: var(--hos-night-ink);
	font-weight: 500;
	font-size: 0.875rem;
	text-decoration: none;
	transition: all 0.2s ease;
}

.hos-article__all:hover {
	background: var(--hos-night-leaf);
	color: var(--hos-night);
	border-color: var(--hos-night-leaf);
}

.hos-article__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	width: 100% !important;
	max-width: 100% !important;
	background: transparent;
	border: 0;
}

.hos-article__nav-item {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 12px;
	min-height: 140px;
	padding: 22px 24px;
	background: var(--hos-night-2);
	border: 1px solid var(--hos-night-rule);
	border-radius: 6px;
	color: var(--hos-night-ink);
	text-decoration: none;
	transition: all 0.2s ease;
}

.hos-article__nav-item:only-child {
	grid-column: 1 / -1;
}

.hos-article__nav-item:hover {
	background: color-mix(in srgb, var(--hos-night-2) 75%, var(--hos-night-leaf));
	border-color: var(--hos-night-leaf);
	transform: translateY(-2px);
}

.hos-article__nav-item--next {
	text-align: right;
	align-items: flex-end;
}

.hos-article__nav-item small {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--hos-night-resin);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
}

.hos-article__nav-item span {
	font-family: var(--hos-display);
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.3;
	color: var(--hos-night-ink);
	text-wrap: balance;
}

/* --------------------------------------------------------------------------
   8. Responsive Behavior
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
	.hos-article__sheet {
		padding: 36px 24px;
	}

	.hos-article__author-box {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.hos-article__author-mark {
		display: none;
	}
}

@media (max-width: 639px) {
	.hos-page:not(.hos-page--plain).hos-article .hos-pagehead__title {
		font-size: clamp(2.15rem, 7vw, 2.75rem);
		text-align: left;
		margin-inline: 0;
	}

	.hos-article__sheet {
		padding: 28px 18px;
		border-radius: 6px;
	}

	.hos-article__nav {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.hos-article__nav-item--next {
		text-align: left;
		align-items: flex-start;
	}

	.hos-article__share {
		flex-direction: column;
		align-items: flex-start;
	}

	.hos-article__share-actions {
		width: 100%;
	}

	.hos-article__share-btn {
		flex: 1;
		justify-content: center;
	}
}
