/* ============================================================
   Blog: list, categories and article pages
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- List hero + search ---------- */
.blog-search { display: flex; align-items: center; gap: 0; max-width: 560px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); padding: 6px 6px 6px 16px; backdrop-filter: blur(8px); }
.blog-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold-soft); stroke-width: 2; stroke-linecap: round; }
.blog-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 0; background: transparent; color: #fff; font: 500 1rem var(--sans); }
.blog-search input::placeholder { color: #a3b0a7; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { border-color: var(--gold-soft); }

/* ---------- Category chips ---------- */
.blog-list { padding-top: clamp(40px, 6vw, 64px); }
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .9rem; color: var(--teal-800); transition: border-color .2s, background .2s, color .2s; }
.blog-cats a small { font-size: .75rem; color: var(--muted); font-weight: 700; }
.blog-cats a:hover { border-color: var(--gold); }
.blog-cats a.is-current { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.blog-cats a.is-current small { color: var(--gold-soft); }
.blog-results { margin: -12px 0 26px; color: var(--muted); }
.blog-results a { color: var(--teal-700); font-weight: 600; text-decoration: underline; }
.blog-empty { padding: 60px 30px; text-align: center; background: var(--white); border: 1px solid var(--line); }
.blog-empty h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.blog-empty p { color: var(--muted); }
.blog-empty a { color: var(--teal-700); font-weight: 700; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 22px; }
.post-card__cat { align-self: flex-start; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 10px; }
.post-card__cat:hover { color: var(--teal-700); }
.post-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; line-height: 1.18; margin-bottom: 12px; }
.post-card__title a { color: var(--teal-900); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.post-card__title a:hover { background-size: 100% 1px; }
.post-card__excerpt { color: var(--muted); font-size: .98rem; margin-bottom: 18px; }
.post-card__meta { margin-top: auto; display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--muted); }
.post-card__meta span::before { content: "·"; margin-right: 14px; color: var(--gold); }

.post-card--featured { grid-column: 1 / -1; flex-direction: row; }
.post-card--featured .post-card__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 380px; }
.post-card--featured .post-card__body { padding: clamp(28px, 4vw, 52px); justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(2rem, 3.4vw, 2.8rem); }
.post-card--featured .post-card__excerpt { font-size: 1.06rem; }
.post-card--featured .post-card__meta { margin-top: 8px; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager__num, .pager__btn { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); background: var(--white); font-weight: 700; color: var(--teal-800); }
.pager__num.is-current { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.pager a:hover { border-color: var(--gold); }

/* ---------- Article hero ---------- */
.preview-bar { position: sticky; top: 0; z-index: 60; padding: 10px 16px; text-align: center; background: #fdf3dc; color: #7a4f00; font-weight: 700; font-size: .9rem; }
.preview-bar a { text-decoration: underline; }
.post-hero .page-hero__inner > *:not(.crumbs) { max-width: 880px; }
.post-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: 1.06; }
.post-hero__cat { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border: 1px solid rgba(217, 207, 189,.4); color: var(--gold-soft); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.post-hero__cat:hover { background: rgba(217, 207, 189,.1); }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: #cdd5cf; font-size: .95rem; }
.post-hero__meta img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 2px solid var(--gold-soft); }
.post-hero__meta a { color: #fff; font-weight: 700; }
.post-hero__meta a:hover { color: var(--gold-soft); }
.post-hero__meta span + span::before { content: "·"; margin-right: 18px; color: var(--gold); }
.post-hero__meta img + span::before { content: none; }

/* ---------- Article layout ---------- */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-bottom: clamp(60px, 8vw, 100px); }
.post-cover { margin: -90px 0 40px; position: relative; z-index: 2; box-shadow: var(--shadow); background: var(--sand); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.post-toc { margin: 0 0 36px; padding: 22px 26px; background: var(--sand); border-left: 3px solid var(--gold); }
.post-toc p { margin: 0 0 10px; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.post-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.post-toc a { color: var(--teal-800); font-weight: 600; }
.post-toc a:hover { color: var(--gold-ink); text-decoration: underline; }

/* Article text */
.post-content { font-size: 1.1rem; line-height: 1.8; color: #2e3630; }
.post-content > * + * { margin-top: 1.2em; }
.post-content h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 1.7em; margin-bottom: .1em; scroll-margin-top: 120px; }
.post-content h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-top: 1.5em; scroll-margin-top: 120px; }
.post-content h4 { font-size: 1.25rem; font-family: var(--sans); font-weight: 700; margin-top: 1.4em; }
.post-content a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.post-content a:hover { color: var(--gold-ink); }
.post-content ul, .post-content ol { padding-left: 1.4em; }
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul > li { position: relative; padding-left: 28px; }
.post-content ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.post-content ol { list-style: decimal; }
.post-content ol > li::marker { color: var(--gold-ink); font-weight: 700; }
.post-content li + li { margin-top: .5em; }
.post-content strong { color: var(--teal-900); }
.post-content blockquote { margin: 1.8em 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: 1.55rem; font-style: italic; line-height: 1.45; color: var(--teal-900); }
.post-content img { height: auto; }
.post-content figure { margin: 2em 0; }
.post-content figure img { width: 100%; }
.post-content figcaption { margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }
.post-content hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.post-content .table-wrap { overflow-x: auto; }
.post-content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.post-content th, .post-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.post-content th { background: var(--sand); color: var(--teal-900); }
.post-content .video-wrap { position: relative; aspect-ratio: 16 / 9; }
.post-content .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-content pre { overflow-x: auto; padding: 16px; background: var(--teal-50); font-size: .92rem; }

/* Share + author */
.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 48px 0 32px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-share span { font-weight: 700; color: var(--teal-900); margin-right: 8px; }
.post-share a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--teal-800); transition: background .2s, color .2s, border-color .2s; }
.post-share a:hover { background: var(--teal-800); color: #fff; border-color: var(--teal-800); }
.post-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.author-box { display: flex; gap: 24px; align-items: flex-start; padding: 28px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; }
.author-box__label { margin: 0; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.author-box__name { margin: 2px 0 8px; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--teal-900); line-height: 1.2; }
.author-box__name small { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 600; color: var(--muted); }
.author-box p { color: var(--muted); }
.author-box a { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--teal-700); }
.post-disclaimer { margin-top: 24px; font-size: .88rem; color: var(--muted); }
.post-disclaimer a { color: var(--teal-700); font-weight: 700; }

/* Sidebar */
.post-side { position: sticky; top: 120px; display: grid; gap: 24px; margin-top: 40px; }
.side-card { padding: 26px; background: var(--white); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.6rem; margin-bottom: 14px; }
.side-card--cta { background: var(--teal-900); border-color: var(--teal-900); color: #cdd5cf; position: relative; overflow: hidden; }
.side-card--cta::after { content: ""; pointer-events: none; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border: 1px solid rgba(217, 207, 189,.25); border-radius: 50%; }
.side-card--cta h2 { color: #fff; }
.side-card--cta p { margin-bottom: 20px; }
.side-card--cta .btn { width: 100%; }
.side-card__phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; color: var(--gold-soft); font-weight: 700; }
.side-card__phone svg { width: 18px; height: 18px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--teal-800); }
.side-list li:first-child a { border-top: 0; }
.side-list a:hover { color: var(--gold-ink); }
.side-list span { font-size: .8rem; color: var(--muted); }

.related-posts { background: var(--sand); }
.post-grid--3 .post-card__title { font-size: 1.45rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; margin-top: 0; grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; gap: 22px; }
  .post-card--featured { flex-direction: column; }
  .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .post-side { grid-template-columns: 1fr; }
  .post-cover { margin-top: -60px; }
  .author-box { flex-direction: column; padding: 22px; }
  .post-content { font-size: 1.04rem; }
  .blog-search .btn { padding-inline: 16px; }
}

/* ---------- Blog list: articles left, categories right ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; align-items: start; }
.blog-main .post-grid { grid-template-columns: repeat(2, 1fr); }
.blog-side { position: sticky; top: 110px; background: var(--white); border: 1px solid var(--line); padding: 24px; }
.blog-side__title { font-size: 1.35rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.blog-side .blog-cats { flex-direction: column; flex-wrap: nowrap; gap: 6px; margin-bottom: 0; }
.blog-side .blog-cats a { justify-content: space-between; border-color: transparent; background: transparent; padding: 10px 12px; }
.blog-side .blog-cats a:hover { background: var(--cream, #f8f5f0); border-color: transparent; }
.blog-side .blog-cats a.is-current { background: var(--teal-800); color: #fff; }
@media (max-width: 1080px) {
  .blog-layout { grid-template-columns: 1fr; gap: 28px; }
  .blog-side { position: static; order: -1; padding: 0; background: none; border: 0; }
  .blog-side__title { display: none; }
  .blog-side .blog-cats { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .blog-side .blog-cats a { justify-content: flex-start; border-color: var(--line); background: var(--white); padding: 9px 16px; }
  .blog-side .blog-cats a.is-current { border-color: var(--teal-800); background: var(--teal-800); }
}
@media (max-width: 760px) {
  .blog-main .post-grid { grid-template-columns: 1fr; }
}
