/* Blog list, guide posts and the plain text pages (privacy, terms, thank you).
   Copies the reference's blog grid, its post layout and its pagination. */

/* ---------- blog list: three cards a row, Read More bar, round page numbers ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pcard-blog { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--light); }
.pcard-blog .img { position: relative; height: 250px; overflow: hidden; background: var(--white); }
.pcard-blog .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.pcard-blog:hover .img img { transform: scale(1.1); }
.pcard-blog .pill { position: absolute; left: 20px; top: 17px; padding: 3px 5px; border-radius: 3px; background: var(--red); color: var(--white); font: 500 14px/21px var(--font); letter-spacing: 1px; text-transform: uppercase; }
.pcard-blog .pill.soon { background: var(--blue); }
.pcard-blog .body { flex: 1; display: flex; flex-direction: column; padding: 20px; }
.pcard-blog h2 { font: 600 22px/33px var(--font); color: var(--black); margin-bottom: 15px; }
.pcard-blog p { font: 500 16px/24px var(--font); color: var(--black); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 20px; }
.pcard-blog .more { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; border-radius: 5px; background: var(--white); font: 500 18px/27px var(--font); color: var(--black); transition: background 0.3s, color 0.3s; }
.pcard-blog:hover .more { background: var(--red); color: var(--white); }
.pcard-blog.soon .more { color: var(--muted); }
.pcard-blog.soon:hover .more { background: var(--white); color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.pagination span { width: 30px; height: 30px; border-radius: 20px; display: grid; place-items: center; font: 400 16px/16px var(--font-alt); color: var(--black); }
.pagination .current { background: var(--red); color: var(--white); }

/* ---------- a guide post ---------- */
.post { padding: 80px var(--gutter) 60px; }
.post .cover { border-radius: 10px; overflow: hidden; margin: 0 0 40px; }
.post .cover img { width: 100%; height: 683px; object-fit: cover; }
.post-body { font: 400 16px/24px var(--font); color: var(--text); }
.post-body p { margin: 0 0 14px; letter-spacing: 0; }
.post-body h2 { font: 500 25.6px/30.72px var(--font); color: var(--text); margin: 26px 0 10px; }
.post-body h3 { font: 600 19px/28px var(--font); color: var(--text); margin: 20px 0 8px; }
.post-body a { color: var(--red); font-weight: 700; }
.post-body ul, .post-body ol { margin: 0 0 16px; padding-left: 40px; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: 6px; }
.post-body strong { font-weight: 700; }
.post-body table { width: 100%; border-collapse: collapse; margin: 10px 0 22px; font-size: 15px; }
.post-body th { background: var(--red); color: var(--white); text-align: left; padding: 10px; font-weight: 600; }
.post-body td { padding: 10px; border-bottom: 1px solid #EDEDED; vertical-align: top; }
.post-body tr:nth-child(even) td { background: #F9ECEC; }
.post-body tbody th { background: var(--light); color: var(--black); font-weight: 600; border-bottom: 1px solid #EDEDED; }
.post-body .guide-faq__item { background: var(--light); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; }
.post-body .guide-faq__q { margin: 0 0 6px; font-size: 17px; }
.post-body blockquote { margin: 16px 0; padding: 12px 18px; border-left: 4px solid var(--red); background: var(--light); }
.post-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding: 14px 10px; background: var(--light); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-nav a, .post-nav span.none { display: inline-flex; align-items: center; gap: 14px; font: 500 16px/24px var(--font); color: var(--black); }
.post-nav span.none { color: var(--muted); }
.post-nav .sq { width: 30px; height: 30px; display: grid; place-items: center; background: var(--red); color: var(--white); font-size: 12px; }
.post-nav span.none .sq { background: #C9C9C9; }
.post-more { padding: 30px var(--gutter) 80px; }
.post-more .head { text-align: center; margin-bottom: 30px; }
.post-more .carousel .item { flex-basis: calc((100% - 60px) / 4); }
.post-more .bcard .img { height: 190px; }
.post-more .bcard h3 { font-size: 18px; line-height: 27px; margin-bottom: 12px; }
.post-more .bcard p { font-size: 14px; line-height: 21px; }

/* ---------- plain text pages ---------- */
.doc { padding: 80px var(--gutter); }
.doc .container { max-width: 1000px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.doc h2 { font: 700 26px/36px var(--font); color: var(--black); margin: 34px 0 12px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { font: 500 16px/26px var(--font); letter-spacing: 0.3px; color: var(--text); }
.doc a { color: var(--red); font-weight: 600; }
.doc ul { list-style: disc; padding-left: 24px; margin: 0 0 16px; }
.thanks { padding: 90px var(--gutter); text-align: center; }
.thanks .ic { width: 90px; height: 90px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; font-size: 38px; margin: 0 auto 26px; }
.thanks p { max-width: 640px; margin: 0 auto 14px; }
.thanks .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post .cover img { height: 460px; }
  .post-more .carousel .item { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .post { padding: 40px var(--gutter); }
  .post .cover img { height: 240px; }
  .post-body h2 { font-size: 22px; line-height: 28px; }
  .post-body ul, .post-body ol { padding-left: 22px; }
  .post-body table { display: block; overflow-x: auto; }
  .post-nav a span.t { display: none; }
  .post-more .carousel .item { flex-basis: 100%; }
  .doc { padding: 50px var(--gutter); }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
