/* Blog index (blog.php) and article view (blog-post.php) — the "OnlyVerified blog" design. */

/* ---------- Shared bits ---------- */
.bl-kicker { display: block; font-size: 10.5px; color: var(--muted); }
.bl-tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 6px;
  background: var(--mint-soft); color: var(--teal-dark); font-size: 10px; font-weight: 500;
}
.bl-read {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 6px 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; transition: background .15s ease;
}
.bl-read:hover { background: #26262a; }
.bl-read-arr { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--ink); transition: transform .2s ease; }
.bl-read:hover .bl-read-arr { transform: translateX(2px); }
.bl-read--light { background: #fff; color: var(--ink); }
.bl-read--light:hover { background: #f1f1ef; }

/* ---------- Index: hero ---------- */
.bl-hero { padding-top: 72px; padding-bottom: 34px; }
.bl-hero h1 {
  margin: 20px 0 0; font-family: var(--font-display); font-size: 58px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em;
}
.bl-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 54px; }
.bl-hero-row p { max-width: 430px; margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.bl-search {
  display: flex; align-items: center; gap: 10px; width: 300px; height: 44px; padding: 0 18px; flex: none;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted-2); transition: border-color .15s ease;
}
.bl-search:focus-within { border-color: var(--ink); color: var(--ink); }
.bl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); }
.bl-search input::placeholder { color: var(--muted-2); }
.bl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.bl-pills a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; transition: border-color .15s ease, background .15s ease;
}
.bl-pills a:hover { border-color: var(--ink); }
.bl-pills a.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Index: featured post ---------- */
.bl-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-top: 30px; padding-bottom: 80px; }
.bl-feat-img { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--skel); }
.bl-feat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-feat-img:hover img { transform: scale(1.03); }
.bl-feat-tags { display: flex; align-items: center; gap: 12px; }
.bl-feat-label { font-size: 10px; color: var(--muted); }
.bl-feat-copy h2 { margin: 18px 0 0; font-family: var(--font-display); font-size: 42px; font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
.bl-feat-copy p { max-width: 460px; margin: 18px 0 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.bl-byline { margin-top: 24px; font-size: 13px; color: var(--muted); }
.bl-byline b { color: var(--ink); font-weight: 600; }
.bl-feat-copy .bl-read { margin-top: 28px; }

/* ---------- Index: latest articles ---------- */
.bl-latest { padding-bottom: 110px; }
.bl-latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.bl-latest-head h2 { margin: 12px 0 0; font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.bl-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bl-card { display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .25s ease, transform .25s ease; }
.bl-card[hidden] { display: none; }
.bl-card:hover { box-shadow: 0 20px 36px -24px rgba(0, 0, 0, .28); transform: translateY(-2px); }
.bl-card-img { position: relative; display: block; border-radius: 13px; overflow: hidden; aspect-ratio: 16 / 11; background: var(--skel); }
.bl-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bl-card:hover .bl-card-img img { transform: scale(1.04); }
.bl-card-img .bl-tag { position: absolute; top: 12px; left: 12px; background: var(--mint); color: var(--ink); }
.bl-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 14px 14px; }
.bl-card-meta { font-size: 12px; color: var(--muted); }
.bl-card h3 { margin: 8px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; }
.bl-card p { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.bl-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 22px; font-size: 13px; font-weight: 600; }
.bl-card-foot i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .2s ease; }
.bl-card:hover .bl-card-foot i { transform: translateX(2px); }
.bl-more { display: flex; justify-content: center; margin-top: 40px; }
.bl-more-btn {
  display: inline-flex; align-items: center; height: 44px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; font-weight: 600; transition: border-color .15s ease;
}
.bl-more-btn:hover { border-color: var(--ink); }
.bl-empty { margin: 0; padding: 40px 0; color: var(--muted); }
.bl-empty a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Post: head ---------- */
.bp-head { max-width: 820px; padding-top: 56px; padding-bottom: 36px; text-align: center; }
.bp-flash { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 24px; padding: 10px 16px; border-radius: 12px; background: var(--mint-soft); font-size: 13.5px; }
.bp-flash a { font-weight: 600; text-decoration: underline; }
.bp-crumbs { display: flex; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.bp-crumbs a:hover { color: var(--ink); }
.bp-crumbs b { color: var(--ink); font-weight: 500; }
.bp-head .bl-tag { margin-top: 14px; }
.bp-head h1 { margin: 16px 0 0; font-family: var(--font-display); font-size: 52px; font-weight: 700; line-height: 1.06; letter-spacing: -0.032em; }
.bp-lede { max-width: 580px; margin: 20px auto 0; font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.bp-byline { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 13px; color: var(--muted); }
.bp-byline a { color: var(--ink); font-weight: 600; }
.bp-avatar {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--beige); color: var(--ink); font-size: 11px; font-weight: 700;
}
.bp-avatar--lg { width: 54px; height: 54px; font-size: 16px; background: var(--mint); }
.bp-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7.4; background: var(--skel); }
.bp-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Post: three columns ---------- */
.bp-layout {
  display: grid; grid-template-columns: 200px minmax(0, 680px) 260px; justify-content: space-between; gap: 48px;
  padding-top: 56px; padding-bottom: 90px;
}
.bp-layout--no-toc { grid-template-columns: minmax(0, 720px) 260px; }
.bp-toc, .bp-side { position: sticky; top: 100px; align-self: start; }
.bp-toc > .mono, .bp-share > .mono { font-size: 10px; color: var(--muted); }
.bp-toc ul { margin: 16px 0 0; padding: 0; list-style: none; }
.bp-toc li + li { margin-top: 12px; }
.bp-toc a { position: relative; display: block; font-size: 13px; line-height: 1.4; color: var(--muted); transition: color .15s ease; }
.bp-toc a:hover { color: var(--ink); }
.bp-toc a.on { padding-left: 16px; color: var(--ink); font-weight: 600; }
.bp-toc a.on::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--teal); }

/* ---------- Post: the article ---------- */
.bp-prose { font-size: 15px; line-height: 1.72; color: var(--body); }
.bp-prose > p:first-child { font-size: 17px; line-height: 1.6; color: var(--ink); }
.bp-prose p { margin: 0 0 20px; }
.bp-prose > :first-child { margin-top: 0; }
.bp-prose a { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 3px; }
.bp-prose h2 {
  margin: 44px 0 16px; scroll-margin-top: 100px; font-family: var(--font-display); font-size: 27px; font-weight: 700;
  line-height: 1.2; letter-spacing: -0.022em; color: var(--ink);
}
.bp-prose h3 { margin: 32px 0 12px; font-size: 19px; font-weight: 700; color: var(--ink); }
.bp-prose ul { margin: 0 0 24px; padding: 0; list-style: none; }
.bp-prose ul li { position: relative; margin: 12px 0; padding-left: 32px; color: var(--ink); line-height: 1.55; }
.bp-prose ul li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(11, 11, 12, .55);
}
.bp-prose ol { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: bp-step; }
.bp-prose ol li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); counter-increment: bp-step; line-height: 1.55; }
.bp-prose ol li::before {
  content: counter(bp-step, decimal-leading-zero); position: absolute; left: 0; top: 21px;
  font-family: var(--font-mono); font-size: 11px; color: var(--teal);
}
.bp-prose ol li strong, .bp-prose ol li b { display: block; margin-bottom: 4px; font-size: 15.5px; color: var(--ink); }
.bp-prose blockquote {
  margin: 32px 0; padding: 34px 38px; border-radius: 20px; background: #f3f3f1;
  font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.28; letter-spacing: -0.018em; color: var(--ink);
}
.bp-prose blockquote p { margin: 0; }
.bp-prose blockquote cite, .bp-prose blockquote footer {
  display: block; margin-top: 18px; font-family: var(--font-mono); font-size: 10.5px; font-style: normal; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.bp-prose img { width: 100%; height: auto; border-radius: 18px; }
.bp-prose figure { margin: 32px 0; }
.bp-prose figcaption { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.bp-prose > img { margin: 32px 0; }
.bp-takeaways { scroll-margin-top: 100px; margin: 36px 0 0; padding: 28px 32px; border-radius: 20px; background: var(--dark); color: #fff; }
.bp-takeaways > .mono { display: block; margin-bottom: 8px; font-size: 10px; color: var(--muted-2); }
.bp-prose .bp-takeaways ul { margin: 0; }
.bp-prose .bp-takeaways li { color: #fff; font-size: 14px; padding-left: 28px; }
.bp-prose .bp-takeaways li::before { background-color: transparent; box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237df3ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); background-size: 16px; }
.bp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.bp-tags a, .bp-tags span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; }
.bp-tags a:hover { border-color: var(--ink); }
.bp-author { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s ease; }
.bp-author:hover { border-color: var(--ink); }
.bp-author > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.bp-author b { font-size: 15.5px; }
.bp-author b + span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Post: readers rate it (customers' posts) ---------- */
.bp-byline-rate { color: var(--ink); font-weight: 600; }
.bp-byline-rate span { color: var(--muted); font-weight: 400; }
.bp-rate { margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; scroll-margin-top: 100px; }
.bp-rate-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; }
.bp-rate h2 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.bp-rate-avg { display: inline-flex; align-items: baseline; gap: 8px; }
.bp-rate-avg b { font-size: 22px; font-weight: 800; }
.bp-rate-avg small { font-size: 12.5px; color: var(--muted); }
.bp-rate-stars { color: #f5a623; letter-spacing: 1px; font-size: 14px; }
.bp-rate-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--mint-soft); font-size: 13.5px; }
.bp-rate-note--err { background: #fdecea; color: #a1281b; }
.bp-rate-form { display: grid; gap: 12px; margin-top: 16px; }
.bp-rate-form .bl-read { justify-self: start; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
.bp-rate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bp-stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.bp-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bp-stars label { font-size: 30px; line-height: 1; color: #d9d9d6; cursor: pointer; transition: color .1s ease, transform .1s ease; }
.bp-stars label:hover, .bp-stars label:hover ~ label, .bp-stars input:checked ~ label { color: #f5a623; }
.bp-stars input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.bp-rate-input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; resize: vertical; }
.bp-rate-input:focus { outline: 0; border-color: var(--ink); }
.bp-rate-list { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.bp-rate-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.bp-rate-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-rate-who { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.bp-rate-who b { font-size: 14px; }
.bp-rate-who small { font-size: 12px; color: var(--muted); }
.bp-rate-list p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--body); }

/* ---------- Post: side column ---------- */
.bp-cta { padding: 26px 24px 24px; border-radius: 20px; background: var(--dark); color: #fff; }
.bp-cta-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--dark-2); color: var(--mint); }
.bp-cta b { display: block; margin-top: 20px; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.bp-cta p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted-2); }
.bp-cta .bl-read { margin-top: 22px; }
.bp-share { margin-top: 26px; }
/* a verified business's post: its card instead of "Is your business verified?" */
.bp-biz { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.bp-biz-logo { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: var(--beige); flex: none; }
.bp-biz-text { margin-top: 16px; min-width: 0; }
.bp-biz-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 999px;
  background: var(--mint); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bp-biz-badge--plain { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.bp-biz b { display: block; margin-top: 12px; font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.bp-biz p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.bp-biz .bl-read { margin-top: 20px; }
.bp-biz--you > b { margin-top: 18px; }
.bp-cta-ic--light { background: var(--mint-soft); color: var(--teal-dark); }
.bp-share > div { display: flex; gap: 8px; margin-top: 12px; }
.bp-share a, .bp-share button {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; font-weight: 700; transition: border-color .15s ease, background .15s ease;
}
.bp-share a:hover, .bp-share button:hover { border-color: var(--ink); }
.bp-share button.done { background: var(--mint); border-color: var(--mint); }
.bp-more { padding-top: 56px; padding-bottom: 110px; border-top: 1px solid var(--line); }

/* ---------- Smaller screens ---------- */
@media (max-width: 1180px) {
  .bp-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .bp-toc { display: none; }
}
@media (max-width: 960px) {
  .bl-hero h1 { font-size: 44px; }
  .bl-featured { grid-template-columns: 1fr; gap: 28px; padding-bottom: 64px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-head h1 { font-size: 40px; }
  .bp-layout, .bp-layout--no-toc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bp-side { position: static; }
  /* stacked: the business card sits right under the post, so the author card would repeat it */
  .bp-author--dup { display: none; }
  .bp-biz:not(.bp-biz--you) { flex-direction: row; align-items: center; gap: 18px; }
  .bp-biz:not(.bp-biz--you) .bp-biz-text { flex: 1; margin-top: 0; }
  .bp-biz:not(.bp-biz--you) .bl-read { margin-top: 0; flex: none; }
}
@media (max-width: 640px) {
  .bl-hero { padding-top: 44px; }
  .bl-hero h1 { font-size: 34px; }
  .bl-hero h1 br { display: none; }
  .bl-hero-row { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .bl-search { width: 100%; }
  .bl-pills { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .bl-pills a { flex: none; }
  .bl-feat-copy h2 { font-size: 30px; }
  .bl-latest-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bl-latest-head h2 { font-size: 30px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); }
  .bp-head { padding-top: 36px; }
  .bp-head h1 { font-size: 32px; }
  .bp-cover { border-radius: 16px; aspect-ratio: 4 / 3; }
  .bp-layout { padding-top: 36px; }
  .bp-prose blockquote { padding: 24px; font-size: 20px; }
  .bp-biz:not(.bp-biz--you) { flex-direction: column; align-items: flex-start; gap: 0; }
  .bp-biz:not(.bp-biz--you) .bp-biz-text { margin-top: 16px; }
  .bp-biz:not(.bp-biz--you) .bl-read { margin-top: 20px; }
}
