/* A blog post (page-templates/single-post.php): a minimal head, the featured image and the content beside a sticky sidebar (index, booking
   card, categories), then related articles. The content is the editor's own: .egv2-prose styles what the editor makes (paragraphs,
   headings, lists, tables, quotes, images). */
.egv2-postpage { background: var(--bg); }

/* The head: category, title, date and reading time (no breadcrumb: owner). */
.egv2-phead { position: relative; padding: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 36px); overflow: hidden; }
.egv2-phead::before { content: ""; position: absolute; top: -50%; right: -12%; width: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(183, 220, 87, .32), transparent 65%); pointer-events: none; }
.egv2-phead .egv2-wrap { position: relative; }
.egv2-phead__cat { display: inline-block; margin-top: 0; padding: 6px 12px; border-radius: 10px 10px 0 10px; background: var(--lime); color: var(--pine); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-decoration: none; transition: background .2s; }
.egv2-phead__cat:hover { background: var(--lime-hover); }
.egv2-phead__title { max-width: 26ch; margin: 14px 0 0; font-size: clamp(30px, 3.6vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.egv2-phead__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.egv2-phead__meta li { display: flex; align-items: center; gap: 8px; }
.egv2-phead__meta .egv2-icon { width: 18px; height: 18px; color: var(--forest); }

/* The body: the article beside the sticky sidebar. */
.egv2-postpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 64px); align-items: start; padding-bottom: clamp(56px, 7vw, 96px); }
.egv2-postpage__thumb { margin: 0 0 clamp(28px, 3.4vw, 44px); border-radius: var(--r-card); overflow: hidden; background: var(--pine); box-shadow: 0 0 0 8px rgba(183, 220, 87, .16), var(--shadow); }
.egv2-postpage__thumb img { display: block; width: 100%; height: auto; }
.egv2-postpage__article { min-width: 0; }
.egv2-postpage__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 32px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.egv2-postpage__tags span { margin-right: 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.egv2-postpage__tags a { padding: 5px 12px; border-radius: 999px; background: var(--white); box-shadow: 0 0 0 1px var(--line); color: var(--forest); font-size: 14px; font-weight: 600; text-decoration: none; }

/* The content, as the editor writes it. */
.egv2-prose { padding: clamp(24px, 3.6vw, 56px); border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); font-size: 17px; line-height: 1.8; color: #34433E; }
.egv2-prose > :first-child { margin-top: 0; }
.egv2-prose p { margin: 0 0 1.15em; }
.egv2-prose h2, .egv2-prose h3, .egv2-prose h4 { scroll-margin-top: calc(var(--header-h) + 24px); color: var(--pine); font-family: var(--font-head); font-weight: 600; letter-spacing: -.01em; }
.egv2-prose h2 { position: relative; margin: 1.8em 0 .6em; padding-left: 18px; font-size: clamp(24px, 2.2vw, 31px); line-height: 1.2; }
.egv2-prose h2::before { content: ""; position: absolute; top: .16em; bottom: .16em; left: 0; width: 4px; border-radius: 4px; background: var(--lime); }
.egv2-prose h3 { margin: 1.5em 0 .5em; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.3; }
.egv2-prose h4 { margin: 1.3em 0 .4em; font-size: 19px; }
.egv2-prose h2 strong, .egv2-prose h3 strong, .egv2-prose h4 strong { font-weight: inherit; }
.egv2-prose strong { color: var(--pine); font-weight: 600; }
.egv2-prose a { color: var(--forest); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(35, 88, 71, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.egv2-prose a:hover { color: var(--pine); text-decoration-color: var(--lime-hover); }
.egv2-prose ul, .egv2-prose ol { margin: 0 0 1.3em; padding: 0; list-style: none; }
.egv2-prose li { position: relative; margin: 0 0 .55em; padding-left: 32px; }
.egv2-prose ul > li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 18px; height: 18px; border-radius: 50%; background: rgba(183, 220, 87, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102C27' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }
.egv2-prose ol { counter-reset: egv2-ol; }
.egv2-prose ol > li { counter-increment: egv2-ol; }
.egv2-prose ol > li::before { content: counter(egv2-ol); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px 7px 0 7px; background: var(--pine); color: var(--lime); font-family: var(--font-head); font-size: 12px; font-weight: 700; line-height: 1; }
.egv2-prose li ul, .egv2-prose li ol { margin: .55em 0 0; }
.egv2-prose blockquote, .egv2-prose .wp-block-quote, .egv2-prose .wp-block-pullquote { position: relative; margin: 1.6em 0; padding: 22px 26px 22px 46px; border: 0; border-radius: 20px 20px 0 20px; background: linear-gradient(135deg, rgba(183, 220, 87, .24), rgba(183, 220, 87, .08)); font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.55; color: var(--pine); }
.egv2-prose blockquote::before { content: ""; position: absolute; top: 22px; bottom: 22px; left: 22px; width: 4px; border-radius: 4px; background: var(--lime); }
.egv2-prose blockquote p:last-child { margin-bottom: 0; }
.egv2-prose figure { margin: 1.6em 0; }
.egv2-prose img { max-width: 100%; height: auto; border-radius: 18px 18px 0 18px; }
.egv2-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.egv2-prose .wp-block-table, .egv2-prose .tablepress-wrap { overflow-x: auto; }
.egv2-prose table { width: 100%; margin: 1.6em 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 18px 18px 0 18px; box-shadow: 0 0 0 1px var(--line); font-size: 15.5px; line-height: 1.5; }
.egv2-prose th { padding: 12px 16px; background: var(--pine); color: var(--white); font-family: var(--font-head); font-weight: 600; text-align: left; }
.egv2-prose td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.egv2-prose tr:nth-child(even) td { background: #F8FAF5; }
.egv2-prose hr { margin: 2em 0; border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(122, 165, 42, .6), transparent); }
.egv2-prose .wp-block-button__link, .egv2-prose .wp-element-button { display: inline-block; padding: 12px 22px; border-radius: 12px; background: var(--lime); color: var(--pine); font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.egv2-prose iframe { max-width: 100%; border: 0; border-radius: 18px 18px 0 18px; }
.egv2-prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }

/* The sidebar: sticky, the index first. */
.egv2-postpage__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: none; }
.egv2-postpage__side::-webkit-scrollbar { display: none; }
.egv2-pindex { position: relative; padding: 20px 16px 16px 26px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.egv2-pindex__title, .egv2-pcats__title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pine); }
.egv2-pindex__title::before, .egv2-pcats__title::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--lime); }
.egv2-pindex ol { margin: 0; padding: 0; list-style: none; }
.egv2-pindex a { display: block; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; text-decoration: none; transition: background .2s, color .2s; }
.egv2-pindex li.is-h3 a { padding-left: 20px; font-size: 13.5px; }
.egv2-pindex a:hover { background: rgba(183, 220, 87, .2); color: var(--pine); }
.egv2-pindex a.is-on { background: rgba(183, 220, 87, .35); color: var(--pine); font-weight: 600; }
.egv2-pindex__bar { position: absolute; top: 20px; bottom: 16px; left: 12px; width: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.egv2-pindex__bar span { display: block; width: 100%; height: 100%; background: var(--lime); transform: scaleY(var(--read, 0)); transform-origin: top; }
/* The booking card: lime, in the card shape. */
.egv2-pcta { padding: 22px; border-radius: var(--r-card); background: var(--lime); color: var(--pine); }
.egv2-pcta__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px 12px 0 12px; background: var(--pine); color: var(--lime); }
.egv2-pcta__icon .egv2-icon { width: 22px; height: 22px; }
.egv2-pcta__title { margin: 14px 0 0; font-family: var(--font-head); font-size: 20px; font-weight: 600; line-height: 1.25; }
.egv2-pcta__text { margin: 8px 0 16px; font-size: 15px; line-height: 1.55; }
.egv2-pcta .egv2-btn { width: 100%; }
.egv2-pcta__call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--pine); font-family: var(--font-head); font-size: 15px; font-weight: 600; text-decoration: none; }
.egv2-pcta__call .egv2-icon { width: 17px; height: 17px; }
.egv2-pcta__call:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Categories. */
.egv2-pcats { padding: 20px 14px 12px; border-radius: var(--r-card); background: var(--white); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.egv2-pcats__title { margin-left: 6px; }
.egv2-pcats ul { margin: 0; padding: 0; list-style: none; }
.egv2-pcats a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-radius: 10px; color: var(--ink); font-size: 14.5px; text-decoration: none; transition: background .2s; }
.egv2-pcats a:hover, .egv2-pcats a[aria-current] { background: rgba(183, 220, 87, .25); color: var(--pine); }
.egv2-pcats b { min-width: 28px; padding: 2px 8px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; text-align: center; color: var(--forest); }

/* Related articles (the blog page's cards). */
.egv2-prelated { padding: clamp(48px, 6vw, 88px) 0 var(--section-y); border-top-left-radius: clamp(28px, 4vw, 56px); background: var(--white); }
.egv2-prelated__title { margin: 0 0 clamp(22px, 3vw, 36px); font-size: var(--fs-section); font-weight: 600; line-height: 1.1; color: var(--ink); }
.egv2-prelated__all { margin: clamp(28px, 3vw, 40px) 0 0; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
	.egv2-anim .egv2-phead .egv2-wrap > * { animation: egv2-post-in .7s var(--ease) both; }
	.egv2-anim .egv2-phead .egv2-wrap > :nth-child(2) { animation-delay: .06s; } .egv2-anim .egv2-phead .egv2-wrap > :nth-child(3) { animation-delay: .12s; } .egv2-anim .egv2-phead .egv2-wrap > :nth-child(4) { animation-delay: .18s; }
	.egv2-anim .egv2-postpage__thumb { animation: egv2-post-in .8s .2s var(--ease) both; }
}
@keyframes egv2-post-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 1000px) {
	.egv2-postpage__grid { grid-template-columns: minmax(0, 1fr); }
	.egv2-postpage__side { position: static; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.egv2-pindex { display: none; }
}
@media (max-width: 640px) {
	.egv2-postpage__side { grid-template-columns: minmax(0, 1fr); }
	.egv2-prose { padding: 22px 18px; font-size: 16.5px; }
}
