/* EZ VisionGrid — blog / resources / comments editorial styles.
   Brand palette: blue #2658A8, ink #1F2937, light #F5F4EF, muted #6B7280, border #E5E7EB. */

.ed-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.ed-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Blog index ---------- */
.blog-head { padding: 56px 0 24px; }
.blog-head h1 { font-size: 40px; margin: 0 0 10px; color: #1F2937; letter-spacing: -.01em; }
.blog-head p { color: #6B7280; margin: 0; font-size: 17px; }
.post-list { display: grid; gap: 22px; padding: 8px 0 72px; }
.post-card {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 14px;
  padding: 20px; transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: 0 6px 24px rgba(31,41,55,.08); transform: translateY(-1px); }
.post-card-cover { width: 220px; height: 140px; border-radius: 10px; background: #F5F4EF center/cover no-repeat; }
.post-card-cover.empty { display: grid; place-items: center; color: #9aa3b2; font-size: 13px; }
.post-card-body { min-width: 0; }
.post-card-meta { font-size: 12.5px; color: #6B7280; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; }
.post-card-title { font-size: 21px; margin: 0 0 8px; color: #1F2937; font-weight: 700; line-height: 1.25; }
.post-card-title a { color: inherit; text-decoration: none; }
.post-card-title a:hover { color: #2658A8; }
.post-card-excerpt { color: #4b5563; font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag { font-size: 12px; color: #2658A8; background: rgba(38,88,168,.08); border-radius: 999px; padding: 2px 10px; }
.empty-state { text-align: center; color: #6B7280; padding: 80px 0; }

/* ---------- Article (post detail) ---------- */
.article { padding: 48px 0 80px; }
.article-back { display: inline-block; margin-bottom: 18px; color: #2658A8; text-decoration: none; font-size: 14px; }
.article-back:hover { text-decoration: underline; }
.article-meta { color: #6B7280; font-size: 13px; margin: 0 0 18px; }
.article-cover { width: 100%; border-radius: 14px; margin: 0 0 28px; display: block; }
.article-body { color: #1F2937; line-height: 1.7; }
.article-body h2 { color: #1F2937; margin: 1.6em 0 .5em; }
.article-body h3 { color: #1F2937; margin: 1.4em 0 .4em; }
.article-body p { margin: 0 0 1em; }
.article-body img { max-width: 100%; border-radius: 10px; }
.article-body a { color: #2658A8; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.article-body blockquote { border-left: 3px solid #2658A8; margin: 0 0 1em; padding: .2em 0 .2em 1em; color: #4b5563; }

/* ---------- Media frame (shared by post + resource) ---------- */
.media-frame { margin: 0 0 12px; }
.media-frame.align-center { text-align: center; }
.media-frame.align-left { float: left; margin: 4px 24px 12px 0; max-width: 100%; }
.media-frame.align-right { float: right; margin: 4px 0 12px 24px; max-width: 100%; }
.media-frame .media-box {
  display: inline-block; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden;
  background: #F5F4EF; line-height: 0; max-width: 100%;
}
.media-frame iframe { display: block; border: 0; width: 100%; height: 100%; max-width: 100%; }
.media-frame img { display: block; max-width: 100%; height: auto; }
.media-caption { font-size: 13px; color: #6B7280; margin-top: 8px; line-height: 1.4; }
.media-frame.align-center .media-caption { text-align: center; }

/* ---------- Resources ---------- */
.res-hero { padding: 60px 0 28px; }
.res-hero h1 { font-size: 40px; margin: 0 0 12px; color: #1F2937; letter-spacing: -.01em; }
.res-hero p { color: #4b5563; font-size: 18px; max-width: 680px; margin: 0; line-height: 1.55; }
.resource-list { padding: 16px 0 72px; display: grid; gap: 0; }
.resource-section { padding: 40px 0; border-top: 1px solid #E5E7EB; }
.resource-section:first-child { border-top: 0; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.resource-grid.media-left { grid-template-columns: 1fr 1fr; direction: rtl; }
.resource-grid.media-left > * { direction: ltr; }
.resource-text h2 { color: #1F2937; margin: 0 0 14px; line-height: 1.2; }
.resource-text .res-body { color: #1F2937; line-height: 1.7; }
.resource-text .res-body p { margin: 0 0 1em; }
.resource-text .res-body a { color: #2658A8; }
.resource-media .media-frame { float: none; margin: 0; text-align: center; }
.resource-media .media-frame .media-box { display: block; margin: 0 auto; }
.res-comments-toggle {
  margin-top: 22px; background: none; border: 0; color: #2658A8; cursor: pointer;
  font-size: 14px; font-weight: 600; padding: 0;
}
.res-comments-toggle:hover { text-decoration: underline; }
.res-comments-wrap { margin-top: 14px; }
@media (max-width: 820px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card-cover { width: 100%; height: 180px; }
  .resource-grid, .resource-grid.media-left { grid-template-columns: 1fr; direction: ltr; }
  .media-frame.align-left, .media-frame.align-right { float: none; margin: 0 0 12px; }
}

/* ---------- Comments ---------- */
.comments { padding: 8px 0 0; }
.comments-title { font-size: 18px; font-weight: 700; color: #1F2937; margin: 0 0 16px; }
.comment { padding: 14px 0; border-top: 1px solid #Eef0f3; }
.comment:first-of-type { border-top: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  background: #2658A8; color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.comment-author { font-weight: 600; color: #1F2937; font-size: 14px; }
.comment-time { color: #9aa3b2; font-size: 12.5px; }
.comment-text { color: #374151; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.comment-form { margin-top: 18px; }
.comment-form textarea {
  width: 100%; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 15px; resize: vertical; min-height: 84px; color: #1F2937; background: #fff;
}
.comment-form textarea:focus { outline: none; border-color: #2658A8; box-shadow: 0 0 0 3px rgba(38,88,168,.12); }
.comment-form .cf-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.comment-form .cf-hint { color: #6B7280; font-size: 12.5px; }
.comment-signin { padding: 16px 0 4px; color: #4b5563; font-size: 15px; }
.comment-signin a { color: #2658A8; font-weight: 600; }
.comment-error { color: #b91c1c; font-size: 13px; margin-top: 8px; }

/* ---------- Shared buttons reused from site ---------- */
.btn-accent2 { display: inline-block; background: #2658A8; color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn-accent2:disabled { opacity: .6; cursor: default; }
.btn-ghost2 { display: inline-block; background: #fff; color: #2658A8; border: 1px solid #E5E7EB; border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; }