/* Samin magazine (blog) + article pages for services and venues */

/* ---------- hero ---------- */
.blog-hero { background: radial-gradient(90% 70% at 50% 0%, #fffaf0 0%, var(--blush) 50%, var(--champagne) 100%); padding-bottom: clamp(56px, 7vw, 96px); }
.blog-hero .lead { max-width: 720px; }
.blog-hero .eyebrow { text-decoration: none; }
.post-hero { padding-bottom: clamp(48px, 6vw, 84px); }
.post-title { font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.3rem); line-height: 1.35; max-width: 980px; margin-inline: auto; }
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; color: var(--ink-soft); font-size: 0.92rem; }
.post-meta > * + *::before { content: "•"; margin-inline-end: 18px; color: var(--gold); }

.blog-search { display: flex; gap: 8px; max-width: 520px; margin: 28px auto 0; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-sm); }
.blog-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 16px; font: inherit; outline: none; color: var(--ink); }
.blog-search .btn { min-height: 44px; }
.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.blog-cats a { padding: 7px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 600; color: var(--wine-800); transition: background 0.3s, border-color 0.3s; }
.blog-cats a small { color: var(--ink-mute); font-weight: 400; margin-inline-start: 2px; }
.blog-cats a:hover { border-color: var(--gold); }
.blog-cats a.is-on { background: var(--wine-900); color: var(--gold-300); border-color: var(--wine-900); }
.blog-cats a.is-on small { color: var(--gold-300); opacity: 0.7; }

/* ---------- cards ---------- */
.blog-list { padding-top: clamp(40px, 5vw, 72px); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .pc-media img { transform: scale(1.05); }
.pc-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blush), var(--champagne)); }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.pc-cat { align-self: flex-start; font-size: 0.76rem; font-weight: 700; color: var(--wine); background: var(--gold-100); padding: 2px 12px; border-radius: 999px; }
.pc-title { font-size: 1.08rem; line-height: 1.75; font-weight: 800; }
.pc-title a:hover { color: var(--gold); }
.pc-desc { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.9; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { margin-top: auto; padding-top: 6px; color: var(--ink-mute); font-size: 0.8rem; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: clamp(36px, 4vw, 56px); }
.pg-num, .pg-step { min-width: 44px; height: 44px; padding-inline: 12px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; color: var(--wine-800); }
.pg-num:hover, .pg-step:hover { border-color: var(--gold); }
.pg-num.is-on { background: var(--wine-900); color: var(--gold-300); border-color: var(--wine-900); }
.pg-gap { color: var(--ink-mute); padding-inline: 4px; }

/* ---------- article ---------- */
.post-wrap { padding-top: clamp(28px, 3vw, 44px); }
.post-cover { margin: 0 auto clamp(28px, 3.5vw, 48px); max-width: 1100px; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); background: var(--cream); }
.post-cover img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 64px); max-width: 1180px; margin-inline: auto; align-items: start; }
.post-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.toc { background: var(--paper); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); max-height: 52vh; overflow: auto; }
.toc b { display: block; font-size: 0.95rem; margin-bottom: 10px; color: var(--wine-800); }
.toc ol { list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; font-size: 0.86rem; line-height: 1.8; color: var(--ink-soft); border-inline-start: 2px solid transparent; }
.toc .lv3 a { padding-inline-start: 22px; font-size: 0.82rem; }
.toc a:hover, .toc a.is-on { color: var(--wine-800); background: var(--gold-100); border-inline-start-color: var(--gold); }
.side-cta { background: var(--wine-900); color: #efe5d2; border-radius: var(--radius-lg); padding: 22px 20px; display: grid; gap: 10px; }
.side-cta b { color: var(--gold-300); font-size: 1.02rem; line-height: 1.7; }
.side-cta p { font-size: 0.86rem; line-height: 1.9; color: rgba(255, 255, 255, 0.72); }
.side-cta .btn { justify-content: center; }
.side-cta .btn-line { color: #fff; border-color: rgba(226, 201, 143, 0.35); }

.prose { font-size: 1.04rem; line-height: 2.15; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.8rem); line-height: 1.6; margin-top: 1.8em; color: var(--wine-800); }
.prose h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.7; margin-top: 1.5em; color: var(--wine-800); }
.prose h4 { font-size: 1.08rem; margin-top: 1.3em; }
.prose h2::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--gold); transform: rotate(45deg); margin-inline-end: 12px; vertical-align: 0.2em; }
.prose a { color: var(--wine); text-decoration: underline; text-decoration-color: var(--gold-300); text-underline-offset: 4px; }
.prose a:hover { color: var(--gold); }
.prose strong, .prose b { font-weight: 800; color: var(--wine-800); }
.prose ul, .prose ol { padding-inline-start: 1.4em; display: grid; gap: 0.35em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--gold); }
.prose img { border-radius: var(--radius); margin-inline: auto; height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { text-align: center; font-size: 0.85rem; color: var(--ink-mute); margin-top: 8px; }
.prose blockquote { border-inline-start: 3px solid var(--gold); background: var(--gold-100); padding: 14px 20px; border-radius: 0 var(--radius) var(--radius) 0; color: var(--wine-800); }
.prose .tbl { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.92rem; line-height: 1.9; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.prose th { background: var(--cream); font-weight: 800; }
.prose iframe, .prose video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); background: #000; }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin-block: 2em; }

.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1180px; margin: clamp(28px, 3vw, 40px) auto 0; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.9rem; }
.post-share span { color: var(--ink-soft); margin-inline-end: 4px; }
.post-share a, .post-share button { padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font: inherit; font-weight: 600; color: var(--wine-800); cursor: pointer; }
.post-share a:hover, .post-share button:hover { border-color: var(--gold); }
.related .h2 { margin-bottom: clamp(28px, 3vw, 44px); }
.related .link-arrow { margin-top: 32px; }

@media (max-width: 980px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-side { position: static; }
  .toc { max-height: none; }
}

/* photo gallery on venue pages */
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin-top: 1.4em; }
.prose .gallery figure { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.prose .gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.9s var(--ease); }
.prose .gallery figure:hover img { transform: scale(1.05); }
