/* Ajeerk blog: lists (index, region, category) and the article page. Loaded after style.css. */

.wrap.blog-wrap { width: min(860px, 100% - 32px); }
.wrap.post { width: min(780px, 100% - 32px); }
.blog-wrap, .post { overflow-wrap: break-word; }

/* hero */
.blog-hero { padding: 38px 0 6px; text-align: center; background: radial-gradient(80% 120% at 50% -10%, var(--mint) 0%, rgba(221, 240, 231, 0) 70%); }
.blog-hero .crumbs { text-align: start; margin-bottom: 18px; }
.blog-badge { display: inline-block; font-family: "Alexandria", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--green); background: #FFFFFF; border: 1px solid #BFE0D1; padding: 3px 14px; border-radius: 999px; }
.blog-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; line-height: 1.3; margin-top: 12px; }
.blog-lead { color: var(--muted); max-width: 640px; margin: 10px auto 0; font-size: 17px; line-height: 1.85; }
.blog-search { display: flex; gap: 6px; max-width: 560px; margin: 22px auto 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 5px; box-shadow: 0 8px 24px rgba(11, 61, 49, .06); }
.blog-search:focus-within { border-color: var(--green); }
.blog-search input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 9px 14px; background: transparent; }
.blog-search input:focus { outline: none; }
.blog-search .btn { padding: 9px 22px; }

/* browse by region / category */
.blog-main { padding-bottom: 20px; }
.blog-label { font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
.blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--line); color: var(--night); text-decoration: none; font-size: 14px; font-weight: 600; line-height: 1.6; }
.bchip b { color: var(--green); font-size: 12px; font-weight: 700; }
.bchip:hover { border-color: var(--green); color: var(--green); }
.bchip.on { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.bchip.on b { color: var(--mint); }

/* the list */
.blog-count { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 30px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.blog-count h2 { font-size: 18px; font-weight: 700; }
.blog-count span { color: var(--muted); font-size: 14px; white-space: nowrap; }
.bcards { display: grid; gap: 14px; }
.bcard { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .15s, box-shadow .15s; }
.bcard:hover { border-color: var(--green); box-shadow: 0 10px 26px rgba(11, 61, 49, .07); }
.bcard:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.bcard h3 { font-size: clamp(18px, 2.4vw, 21px); font-weight: 700; line-height: 1.55; }
.bcard h3 a { color: var(--night); text-decoration: none; }
.bcard h3 a:focus { outline: none; }
.bcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.bcard p { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin-top: 8px; }
.bmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.bmeta span, .bmeta time { display: inline-flex; align-items: center; gap: 5px; }
.bmeta svg { width: 14px; height: 14px; flex: none; }
.bmore { margin-inline-start: auto; color: var(--green); font-weight: 700; font-size: 14px; }

/* pager */
.bpager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0 6px; }
.bpager a, .bpager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--night); text-decoration: none; font-weight: 600; font-size: 14px; }
.bpager a:hover { border-color: var(--green); color: var(--green); }
.bpager .on { background: var(--night); border-color: var(--night); color: var(--sand); }
.bpager .gap { border: 0; background: none; min-width: 16px; padding: 0 2px; }

/* article */
.post { padding: 22px 0 10px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.ptag { font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: var(--mint); color: var(--green); text-decoration: none; }
.ptag:hover { background: var(--green); color: #FFFFFF; }
.post-head h1 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 800; line-height: 1.45; }
.post-meta { margin-top: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

/* generated cover */
.post-cover { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 18px; min-height: clamp(230px, 46vw, 400px); margin: 24px 0; padding: clamp(20px, 4.5vw, 40px) clamp(20px, 5vw, 46px); border-radius: 18px; border-top: 5px solid var(--green); border-bottom: 6px solid var(--night); background: radial-gradient(70% 90% at 0% 100%, var(--mint) 0%, rgba(221, 240, 231, 0) 70%), linear-gradient(160deg, #FFFFFF 0%, var(--sand) 100%); box-shadow: 0 16px 36px rgba(11, 61, 49, .10); }
.pc-brand { display: flex; align-items: center; gap: 10px; }
.pc-logo { display: inline-grid; place-items: center; width: clamp(38px, 6vw, 50px); height: clamp(38px, 6vw, 50px); border-radius: 12px; background: var(--night); }
.pc-logo svg { height: 64%; width: auto; }
.pc-word { font-family: "Alexandria", sans-serif; font-weight: 800; font-size: clamp(20px, 3.2vw, 27px); color: var(--night); }
.pc-text { margin: auto 0; max-width: 88%; }
.pc-title { font-family: "Alexandria", sans-serif; font-weight: 800; font-size: clamp(22px, 4.8vw, 40px); line-height: 1.4; color: var(--night); }
.pc-hl { color: var(--green); }
.pc-accent { font-family: "Alexandria", sans-serif; font-weight: 800; font-size: clamp(19px, 3.6vw, 31px); line-height: 1.4; color: var(--green); margin-top: 6px; }
.pc-foot { font-size: clamp(13px, 1.8vw, 15px); font-weight: 600; color: var(--muted); }
.pc-mark { position: absolute; z-index: -1; inset-inline-end: 5%; bottom: -14%; height: 118%; width: auto; opacity: .09; transform: rotate(-14deg); }

/* in short */
.post-tldr { margin: 24px 0 28px; padding: 16px 20px; background: var(--mint); border-inline-start: 4px solid var(--green); border-radius: 14px; }
.post-tldr h2 { font-size: 15px; font-weight: 700; color: var(--green); margin-bottom: 4px; }
.post-tldr p { font-size: 16.5px; line-height: 1.95; }

/* the text */
.post-body { font-size: 18px; line-height: 2; color: #123B30; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2 { font-size: clamp(21px, 3vw, 26px); font-weight: 700; line-height: 1.55; margin: 1.9em 0 .6em; color: var(--night); }
.post-body h3 { font-size: clamp(18px, 2.4vw, 20.5px); font-weight: 700; line-height: 1.6; margin: 1.6em 0 .45em; color: var(--night); }
.post-body h4 { font-family: "Alexandria", sans-serif; font-size: 17px; margin: 1.3em 0 .4em; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-inline-start: 1.5em; }
.post-body li { margin: .4em 0; padding-inline-start: .2em; }
.post-body li::marker { color: var(--green); font-weight: 700; }
.post-body a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-body a:hover { color: var(--night); }
.post-body strong { color: var(--night); font-weight: 700; }
.post-body blockquote { margin: 1.4em 0; padding: 12px 18px; border-inline-start: 4px solid var(--saffron); background: #FFF8E8; border-radius: 12px; }
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.post-body .table-wrap { overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.7; }
.post-body th, .post-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.post-body th { background: var(--mint); font-weight: 700; }
.post-body code { background: #EEE8DC; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.post-body pre { overflow-x: auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; direction: ltr; text-align: left; }

/* call to action */
.post-cta { position: relative; overflow: hidden; margin: 38px 0 22px; padding: 28px 24px; border-radius: 20px; background: var(--night); color: var(--sand); text-align: center; }
.post-cta h2 { font-size: clamp(20px, 3vw, 24px); font-weight: 700; line-height: 1.5; }
.post-cta p { color: #B9D3C8; margin: 10px auto 0; max-width: 560px; font-size: 16px; line-height: 1.9; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.cta-btns .btn { white-space: normal; text-align: center; }
.cta-ghost { background: transparent; border-color: rgba(245, 240, 230, .35); color: var(--sand); }
.cta-ghost:hover { border-color: var(--saffron); color: var(--saffron); }
.post-cta small { display: block; margin-top: 16px; color: #8FB3A6; font-size: 12.5px; line-height: 1.8; }

/* related */
.post-related { margin: 22px 0; padding: 18px 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; }
.post-related h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.post-related ul { list-style: none; margin: 0; padding: 0; }
.post-related li + li { border-top: 1px solid var(--line); }
.post-related a { display: block; padding: 11px 0; color: var(--night); text-decoration: none; font-weight: 600; line-height: 1.65; }
.post-related a:hover { color: var(--green); }
.post-related small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: 13px; }
.post-back { margin: 18px 0 8px; font-size: 15px; color: var(--muted); }

@media (max-width: 600px) {
  .blog-hero { padding-top: 26px; }
  .blog-lead { font-size: 16px; }
  .bcard { padding: 16px 16px 14px; }
  .bmore { margin-inline-start: 0; width: 100%; }
  .post-body { font-size: 17px; line-height: 1.95; }
  .pc-text { max-width: 100%; }
  .post-cta { padding: 24px 18px; }
  .cta-btns .btn { width: 100%; }
  .post-related { padding: 14px 16px; }
}
