/* ==========================================================================
   Hotel Rivel — SINGLE POST template. Scoped to .rivel-post-template.
   Tokens come from global.css. Same construction as the other templates.
   ========================================================================== */
.rivel-post-template *,
.rivel-post-template *::before,
.rivel-post-template *::after{ box-sizing:border-box; }
.rivel-post-template .rp-main{
	overflow-x:clip; --rp-container:1280px;
	--rp-line:rgba(24,58,43,.14); --rp-line-dark:rgba(245,242,233,.16); --rp-muted-dark:rgba(245,242,233,.78);
	background:var(--clr-warm-ivory); color:var(--clr-text-primary);
}
.rivel-post-template .rp-main a{ text-decoration:none; color:inherit; }
.rivel-post-template .editorial-italic{ font-family:var(--font-editorial); font-style:italic; font-weight:500; }

/* Hero */
.rivel-post-template .rp-hero{
	position:relative; min-height:80vh; min-height:80dvh; display:flex; align-items:flex-end;
	padding:8rem 2rem 4rem; overflow:hidden; color:var(--clr-warm-ivory); isolation:isolate; background:var(--clr-deep-green);
}
.rivel-post-template .rp-hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.rivel-post-template .rp-hero-overlay{ position:absolute; inset:0; z-index:-1; background:linear-gradient(210deg,rgba(16,42,32,.10) 0%,rgba(16,42,32,.75) 60%,rgba(10,26,20,.95) 100%); }
.rivel-post-template .rp-hero-container{ width:100%; max-width:var(--rp-container); margin:0 auto; }
.rivel-post-template .rp-hero-content{ display:flex; flex-direction:column; max-width:820px; }
.rivel-post-template .rp-hero-eyebrow{
	align-self:flex-start; font-family:var(--font-primary); font-size:.75rem; font-weight:700; text-transform:uppercase;
	letter-spacing:.15em; margin-bottom:1rem; color:var(--clr-warm-ivory);
}
.rivel-post-template a.rp-hero-eyebrow:hover{ color:var(--clr-terracotta); }
.rivel-post-template .rp-hero-title{
	font-family:var(--font-editorial); font-weight:500; font-size:clamp(2.25rem,5vw,4rem);
	line-height:1.05; letter-spacing:-.02em; margin-bottom:1.25rem; color:var(--clr-warm-ivory);
}
.rivel-post-template .rp-hero-meta{ display:flex; flex-wrap:wrap; gap:.6rem; font-size:.875rem; color:rgba(245,242,233,.8); }

/* Layout */
.rivel-post-template .rp-section{ padding:6rem 2rem 8rem; }
.rivel-post-template .rp-container{ width:100%; max-width:var(--rp-container); margin:0 auto; }
.rivel-post-template .rp-layout{ display:grid; grid-template-columns:minmax(0,1fr) 360px; gap:5rem; align-items:start; }
.rivel-post-template .rp-article{ min-width:0; max-width:760px; }

/* Gutenberg content */
.rivel-post-template .rp-content{ font-family:var(--font-primary); font-size:1.0625rem; line-height:1.85; color:var(--clr-text-secondary); }
.rivel-post-template .rp-content > *{ margin-top:0; margin-bottom:1.5rem; }
.rivel-post-template .rp-content > *:last-child{ margin-bottom:0; }
.rivel-post-template .rp-content h2,
.rivel-post-template .rp-content h3,
.rivel-post-template .rp-content h4{ font-family:var(--font-editorial); font-weight:500; line-height:1.15; letter-spacing:-.01em; color:var(--clr-primary-green); margin-top:3rem; margin-bottom:1rem; }
.rivel-post-template .rp-content h2{ font-size:clamp(1.875rem,3vw,2.5rem); }
.rivel-post-template .rp-content h3{ font-size:clamp(1.5rem,2.4vw,2rem); }
.rivel-post-template .rp-content h4{ font-size:1.375rem; }
.rivel-post-template .rp-content > h2:first-child,
.rivel-post-template .rp-content > h3:first-child{ margin-top:0; }
.rivel-post-template .rp-content a{ color:var(--clr-primary-green); border-bottom:1px solid var(--clr-terracotta); transition:color var(--transition-fast); }
.rivel-post-template .rp-content a:hover{ color:var(--clr-terracotta); }
.rivel-post-template .rp-content strong{ color:var(--clr-text-primary); }
.rivel-post-template .rp-content ul,
.rivel-post-template .rp-content ol{ padding-left:1.4rem; }
.rivel-post-template .rp-content ul{ list-style:disc; }
.rivel-post-template .rp-content ol{ list-style:decimal; }
.rivel-post-template .rp-content li{ margin-bottom:.5rem; padding-left:.25rem; }
.rivel-post-template .rp-content li::marker{ color:var(--clr-terracotta); }
.rivel-post-template .rp-content blockquote,
.rivel-post-template .rp-content .wp-block-quote{
	margin:2.5rem 0; padding:.25rem 0 .25rem 1.75rem; border-left:3px solid var(--clr-terracotta);
	font-family:var(--font-editorial); font-style:italic; font-size:1.5rem; line-height:1.4; color:var(--clr-primary-green);
}
.rivel-post-template .rp-content blockquote p{ margin-bottom:.75rem; }
.rivel-post-template .rp-content blockquote cite{ display:block; font-family:var(--font-primary); font-style:normal; font-size:.875rem; color:var(--clr-text-secondary); }
.rivel-post-template .rp-content img{ max-width:100%; height:auto; display:block; border-radius:16px; }
.rivel-post-template .rp-content figure{ margin-left:0; margin-right:0; }
.rivel-post-template .rp-content figcaption{ margin-top:.75rem; font-size:.875rem; line-height:1.5; color:var(--clr-text-secondary); text-align:left; }
.rivel-post-template .rp-content .alignwide,
.rivel-post-template .rp-content .alignfull{ max-width:100%; }
.rivel-post-template .rp-content .alignleft{ float:left; margin:0 1.5rem 1rem 0; max-width:50%; }
.rivel-post-template .rp-content .alignright{ float:right; margin:0 0 1rem 1.5rem; max-width:50%; }
.rivel-post-template .rp-content .aligncenter{ margin-left:auto; margin-right:auto; }
.rivel-post-template .rp-content .wp-block-gallery{ gap:1rem; }
.rivel-post-template .rp-content hr{ border:0; border-top:1px solid var(--rp-line); margin:3rem 0; }
.rivel-post-template .rp-content table{ width:100%; border-collapse:collapse; font-size:.9375rem; display:block; overflow-x:auto; }
.rivel-post-template .rp-content th,
.rivel-post-template .rp-content td{ padding:.85rem 1rem; text-align:left; border-bottom:1px solid var(--rp-line); }
.rivel-post-template .rp-content th{ font-weight:700; color:var(--clr-primary-green); background:var(--clr-soft-cream); }
.rivel-post-template .rp-content pre{ background:var(--clr-deep-green); color:var(--clr-warm-ivory); padding:1.25rem 1.5rem; border-radius:12px; overflow-x:auto; font-size:.875rem; line-height:1.6; }
.rivel-post-template .rp-content code{ font-size:.9em; background:var(--clr-soft-cream); padding:.1em .35em; border-radius:4px; }
.rivel-post-template .rp-content pre code{ background:none; padding:0; }
.rivel-post-template .rp-content iframe,
.rivel-post-template .rp-content video{ max-width:100%; border-radius:16px; }
.rivel-post-template .rp-content .wp-block-embed__wrapper{ position:relative; }
.rivel-post-template .rp-content .wp-block-button__link{
	display:inline-flex; align-items:center; min-height:48px; padding:.75rem 1.75rem; border:none; border-radius:50px;
	background:var(--clr-deep-green); color:var(--clr-warm-ivory); font-size:.8125rem; font-weight:700;
	text-transform:uppercase; letter-spacing:.05em; transition:transform var(--transition-fast), background-color var(--transition-fast);
}
.rivel-post-template .rp-content .wp-block-button__link:hover{ background:var(--clr-primary-green); color:var(--clr-warm-ivory); transform:translateY(-2px); }
.rivel-post-template .rp-content .wp-block-pullquote{ border-top:1px solid var(--rp-line); border-bottom:1px solid var(--rp-line); padding:2rem 0; text-align:center; }
.rivel-post-template .rp-content::after{ content:""; display:block; clear:both; }

/* Tags */
.rivel-post-template .rp-tags{ list-style:none; display:flex; flex-wrap:wrap; gap:.5rem; margin:3rem 0 0; padding:2rem 0 0; border-top:1px solid var(--rp-line); }
.rivel-post-template .rp-tags a{
	display:inline-block; font-size:.6875rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
	color:var(--clr-primary-green); border:1px solid var(--rp-line); border-radius:50px; padding:.4rem .9rem; transition:border-color var(--transition-fast);
}
.rivel-post-template .rp-tags a:hover{ border-color:var(--clr-primary-green); }

/* Sidebar */
.rivel-post-template .rp-sidebar{ display:flex; flex-direction:column; gap:1.5rem; min-width:0; }
.rivel-post-template .rp-card{ background:#fff; border:1px solid var(--rp-line); border-radius:16px; padding:1.75rem; }
.rivel-post-template .rp-card p{ font-size:.9375rem; line-height:1.65; color:var(--clr-text-secondary); }
.rivel-post-template .rp-eyebrow{
	display:flex; align-items:center; gap:.5rem; margin-bottom:.75rem; font-family:var(--font-primary);
	font-size:.6875rem; font-weight:700; text-transform:uppercase; letter-spacing:.15em; color:var(--clr-terracotta);
}
.rivel-post-template .rp-eyebrow--dark{ color:var(--clr-warm-ivory); }
.rivel-post-template .rp-card-title{ font-family:var(--font-editorial); font-size:1.75rem; font-weight:500; line-height:1.1; color:var(--clr-primary-green); margin:0 0 1rem; }
.rivel-post-template .rp-card-title--light{ color:var(--clr-warm-ivory); }
.rivel-post-template .rp-card--proposal{ background:var(--clr-deep-green); border-color:var(--clr-deep-green); color:var(--clr-warm-ivory); }
.rivel-post-template .rp-card--proposal p{ color:var(--rp-muted-dark); margin-bottom:1.5rem; }

/* Button */
.rivel-post-template .rp-btn-primary{
	font-family:var(--font-primary); font-size:.8125rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
	border-radius:50px; display:inline-flex; align-items:center; justify-content:space-between; gap:1rem; min-height:48px; width:100%;
	background:var(--clr-warm-ivory); color:var(--clr-primary-green); padding:.375rem .375rem .375rem 1.5rem;
	transition:transform var(--transition-fast), background-color var(--transition-fast);
}
.rivel-post-template .rp-btn-primary:hover{ background:#fff; transform:translateY(-2px); }
.rivel-post-template .rp-btn-circle{ width:36px; height:36px; flex-shrink:0; border-radius:50%; background:rgba(24,58,43,.1); border:1px solid rgba(24,58,43,.15); display:flex; align-items:center; justify-content:center; transition:transform var(--transition-fast); }
.rivel-post-template .rp-btn-primary:hover .rp-btn-circle{ transform:translateX(4px); }

/* Related */
.rivel-post-template .rp-related{ list-style:none; margin:0; padding:0; border-top:1px solid var(--rp-line); }
.rivel-post-template .rp-related li{ border-bottom:1px solid var(--rp-line); }
.rivel-post-template .rp-related-item{ display:flex; align-items:center; gap:1rem; padding:1rem 0; }
.rivel-post-template .rp-related-thumb{ width:72px; height:72px; flex-shrink:0; border-radius:10px; overflow:hidden; background:var(--clr-soft-cream); }
.rivel-post-template .rp-related-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.rivel-post-template .rp-related-text{ display:flex; flex-direction:column; gap:.25rem; min-width:0; }
.rivel-post-template .rp-related-text strong{ font-family:var(--font-editorial); font-size:1.125rem; font-weight:500; line-height:1.25; color:var(--clr-primary-green); transition:color var(--transition-fast); }
.rivel-post-template .rp-related-text span{ font-size:.75rem; color:var(--clr-text-secondary); }
.rivel-post-template .rp-related-item:hover strong{ color:var(--clr-terracotta); }

/* About */
.rivel-post-template .rp-contact{ list-style:none; margin:1.25rem 0 0; padding:1rem 0 0; border-top:1px solid var(--rp-line); display:flex; flex-direction:column; gap:.5rem; }
.rivel-post-template .rp-contact a{ font-size:.9375rem; color:var(--clr-primary-green); overflow-wrap:anywhere; }
.rivel-post-template .rp-contact a:hover{ color:var(--clr-terracotta); }

/* Share */
.rivel-post-template .rp-share{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.rivel-post-template .rp-share a,
.rivel-post-template .rp-share button{
	display:inline-flex; align-items:center; min-height:40px; padding:.5rem 1rem; border-radius:50px; border:1px solid var(--rp-line);
	background:transparent; font-family:var(--font-primary); font-size:.8125rem; font-weight:600; color:var(--clr-primary-green); cursor:pointer;
	transition:background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.rivel-post-template .rp-share a:hover,
.rivel-post-template .rp-share button:hover{ background:var(--clr-deep-green); border-color:var(--clr-deep-green); color:var(--clr-warm-ivory); }
.rivel-post-template .rp-share a:focus-visible,
.rivel-post-template .rp-share button:focus-visible{ outline:2px solid var(--clr-terracotta); outline-offset:3px; }
.rivel-post-template .rp-share-status{ margin-top:.75rem; min-height:1.2em; font-size:.8125rem; color:var(--clr-primary-green); }

@media (prefers-reduced-motion:reduce){
	.rivel-post-template .rp-btn-primary,
	.rivel-post-template .rp-content .wp-block-button__link{ transition:none; }
}

/* Tablet */
@media (max-width:1100px){
	.rivel-post-template .rp-layout{ grid-template-columns:minmax(0,1fr) 320px; gap:3rem; }
}
@media (max-width:1024px){
	.rivel-post-template .rp-section{ padding:5rem 2rem 6rem; }
	.rivel-post-template .rp-layout{ grid-template-columns:1fr; gap:4rem; }
	.rivel-post-template .rp-article{ max-width:none; }
	/* sidebar cards flow in two columns, proposal card spans the full width */
	.rivel-post-template .rp-sidebar{ display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; align-items:start; }
	.rivel-post-template .rp-card--proposal{ grid-column:1 / -1; }
}

/* Mobile */
@media (max-width:767px){
	.rivel-post-template .rp-hero{ padding:7rem 1.5rem 3rem; min-height:56vh; min-height:56dvh; }
	.rivel-post-template .rp-section{ padding:3.5rem 1.5rem 5rem; }
	.rivel-post-template .rp-content{ font-size:1rem; line-height:1.8; }
	.rivel-post-template .rp-content blockquote{ font-size:1.25rem; padding-left:1.25rem; }
	.rivel-post-template .rp-content .alignleft,
	.rivel-post-template .rp-content .alignright{ float:none; max-width:100%; margin:0 0 1.5rem; }
	.rivel-post-template .rp-sidebar{ grid-template-columns:1fr; }
	.rivel-post-template .rp-card{ padding:1.5rem; }
}
