/* Greenkunja journal: blog index + posts. Builds on style.css tokens. */
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--paddy-deep); font-weight: 600; }

/* ---------- Blog index ---------- */
.blog-head { padding: 40px 0 28px; }
.blog-head h1 { margin-top: 14px; }
.blog-head .lede { max-width: 36em; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.pcard:hover { border-color: var(--paddy); }
.pcard-img { aspect-ratio: 16 / 10; background: var(--sky); overflow: hidden; display: block; }
.pcard-img img, .pcard-img .ph { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 18px 20px 22px; display: grid; gap: 8px; }
.pcard-cat { font-size: 13px; font-weight: 600; color: var(--paddy); }
.pcard-title { font: 400 20px/1.3 var(--serif); color: var(--paddy-deep); }
.pcard-date { font-size: 14px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 12px; margin: 32px 0 0; }
.empty { padding: 40px 0; color: var(--muted); }

/* ---------- Single post ---------- */
.post-head { padding: 32px 0 24px; }
.post-cat { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--paddy); }
.post-head h1 { margin-top: 8px; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
.post-meta { margin-top: 14px; color: var(--muted); font-size: 15px; }
.post-hero { margin: 0 auto 8px; width: min(1120px, 100%); }
.post-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.post-hero figcaption { width: min(760px, 100% - 32px); margin: 10px auto 0; color: var(--muted); font-size: 14px; }

.post-body { padding: 16px 0 24px; font-size: 18px; line-height: 1.7; }
.post-body > * + * { margin-top: 1.1em; }
.post-body p { margin: 0; }
.post-body p + p { margin-top: 1em; }
.post-body h2 { font: 400 clamp(26px, 3.4vw, 32px)/1.2 var(--serif); color: var(--paddy-deep); margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.post-body h3 { font: 600 20px/1.35 var(--sans); margin: 1.8em 0 .4em; scroll-margin-top: 90px; }
.post-body a { color: var(--paddy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--paddy-deep); text-decoration-thickness: 2px; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0; }
.post-body li + li { margin-top: .35em; }
.post-body li::marker { color: var(--paddy); }
.post-body strong { font-weight: 600; }

/* Byline */
.post-body .gk-byline { font-size: 15px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* Punchy line */
.post-body .gk-punch { font: 400 22px/1.4 var(--serif); color: var(--paddy-deep); }

/* Reader question */
.post-body blockquote { margin: 1.4em 0; padding: 18px 22px; background: #fff; border-left: 4px solid var(--mustard); border-radius: 0 var(--r-md) var(--r-md) 0; box-shadow: 0 1px 0 var(--line); }
.post-body blockquote p { font: 400 20px/1.5 var(--serif); color: var(--ink); }
.post-body blockquote cite { display: block; margin-top: 8px; font: normal 14px/1.4 var(--sans); color: var(--muted); }

/* Quick answer */
.post-body .gk-quick { background: rgba(226, 178, 59, .12); border: 1px solid rgba(226, 178, 59, .5); border-left: 4px solid var(--mustard); border-radius: var(--r-sm); padding: 18px 22px; font-size: 17px; }
.post-body .gk-quick p + p { margin-top: .6em; }

/* Table of contents */
.post-body .gk-toc { background: var(--sky); border-radius: var(--r-md); padding: 20px 24px; }
.post-body .gk-toc .gk-toc-title { font: 400 20px/1.3 var(--serif); color: var(--paddy-deep); margin-bottom: 10px; }
.post-body .gk-toc ol { columns: 2; column-gap: 32px; font-size: 16px; }
.post-body .gk-toc li { break-inside: avoid; }
.post-body .gk-toc a { text-decoration: none; color: var(--ink); }
.post-body .gk-toc a:hover { color: var(--paddy); text-decoration: underline; }

/* Insider tip */
.post-body .gk-tip { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--paddy); border-radius: var(--r-sm); padding: 14px 18px; font-size: 17px; }
.post-body .gk-tip strong:first-child { color: var(--paddy); }

/* Price note */
.post-body .gk-note { font-size: 15px; color: var(--muted); background: var(--sky); border-radius: var(--r-sm); padding: 12px 16px; }
.post-body .gk-note strong { color: var(--ink); }

/* Tables */
.post-body figure.wp-block-table { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.post-body th { background: var(--paddy); color: #fff; font-weight: 600; text-align: left; padding: 11px 14px; vertical-align: bottom; }
.post-body td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.post-body tr:nth-child(even) td { background: #F6F9F7; }
.post-body figure.wp-block-table figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

/* Images */
/* Images fill the column and break out wider on desktop.
   width:100% matters: WP adds sizes="auto" to lazy images, and with width:auto
   the browser picks the 300px thumbnail. */
.post-body figure.wp-block-image { margin: 2em 0; }
.post-body > figure.wp-block-image { width: min(1120px, 100vw - 32px); margin-left: 50%; transform: translateX(-50%); }
.post-body figure.wp-block-image img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 760px; object-fit: cover; margin: 0 auto; border-radius: var(--r-md); }
.post-body img[sizes^="auto" i] { contain-intrinsic-size: 3000px 1500px; }
.post-body figure.wp-block-image figcaption { text-align: left; }
.post-body > figure.wp-block-image.alignwide { width: min(1120px, 100vw - 32px); }
.post-body > figure.wp-block-image figcaption { max-width: 760px; }
.post-body figure.wp-block-image figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.post-body figure.wp-block-image figcaption .credit { display: block; font-size: 12.5px; margin-top: 2px; }
.post-body .wp-block-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.8em 0; }
.post-body .wp-block-gallery figure.wp-block-image { margin: 0; }
.post-body .wp-block-gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.post-body .wp-block-gallery > figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }

/* CTA */
.post-body .gk-cta { background: var(--paddy); color: #fff; border-radius: var(--r-lg); padding: 26px 28px; }
.post-body .gk-cta h2, .post-body .gk-cta h3 { color: #fff; margin-top: 0; }
.post-body .gk-cta a { color: #fff; }
.post-body .gk-cta .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.post-body .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--r-md); background: var(--mustard); color: var(--ink) !important; font: 600 16px/1 var(--sans); text-decoration: none !important; }
.post-body .is-style-outline .wp-block-button__link { background: transparent; color: #fff !important; border: 1.5px solid #fff; }

/* 3 steps */
.post-body .gk-steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 12px; }
.post-body .gk-steps li { counter-increment: s; position: relative; padding: 16px 18px 16px 64px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); margin: 0; }
.post-body .gk-steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--paddy); color: #fff; font-weight: 600; display: grid; place-items: center; }

/* Checklist */
.post-body .gk-check { list-style: none; padding: 0; }
.post-body .gk-check li { position: relative; padding-left: 32px; }
.post-body .gk-check li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border: 2px solid var(--paddy); border-radius: 5px; }

/* FAQ */
.post-body .gk-faq h3 { font-size: 18px; margin: 1.4em 0 .3em; padding-top: 1.1em; border-top: 1px solid var(--line); }
.post-body .gk-faq h3:first-child { border-top: 0; padding-top: 0; }

/* Related journal links inside posts */
.post-body .gk-more { background: var(--sky); border-radius: var(--r-md); padding: 18px 22px; }

/* After-post booking band */
.stay-band { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin: 16px 0 40px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 10px 30px -18px rgba(30,63,41,.35); }
.stay-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); }
.stay-img img { width: 100%; height: 100%; object-fit: cover; }
.stay-k { font: 400 22px/1.25 var(--serif); color: var(--paddy-deep); margin-bottom: 6px; }
.stay-body p { color: var(--muted); }
.stay-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stay-btns .btn { min-height: 44px; font-size: 15px; }
.stay-mail { margin-top: 10px; font-size: 14px; }

.related { padding: 8px 0 24px; }
.related h2 { margin-bottom: 20px; }
.foot-nav { margin-top: 10px; display: flex; gap: 16px; }
.foot-nav a { color: #fff; }

@media (max-width: 980px) {
  .pgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pgrid { grid-template-columns: 1fr; }
  .post-body { font-size: 17px; }
  .post-body .gk-toc ol { columns: 1; }
  .post-body table { font-size: 15px; }
  .post-body th, .post-body td { padding: 9px 10px; }
  .post-body .wp-block-gallery { grid-template-columns: 1fr; }
  .stay-band { grid-template-columns: 1fr; }
  .post-hero img { max-height: 70vw; }
  .post-body > figure.wp-block-image, .post-body > figure.wp-block-image.alignwide { width: 100vw; }
  .post-body > figure.wp-block-image img { border-radius: 0; max-height: 90vh; }
  .post-body > figure.wp-block-image figcaption { padding: 0 16px; }
}
