/* BizKit Blog — flat editorial, matching Katana/Zoho/Xero references.
 * Rules: pure white bg, photos fill card edges (no frame), same fonts as the main BizKit site
 * (Plus Jakarta Sans + Noto Sans Thai Looped), brand blue as the only accent.
 */

/* ---------- Category tabs (top filter) ---------- */
.cat-tab {
  display: inline-flex; align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  color: #2A3C52;
  border: 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background-color .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.cat-tab:hover { color: #1C9DD8; background: #F3F8FC; }
.cat-tab.is-active {
  background: #0F2233;
  color: #fff;
}

/* ---------- Eyebrow category (over/near titles) ---------- */
.eyebrow-cat {
  display: inline-block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1C9DD8;
}

/* ---------- Share buttons (unchanged styling, kept per user request) ---------- */
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E5ECF3;
  color: #2A3C52;
  transition: color .25s, border-color .25s, background-color .25s, transform .25s;
}
.share-btn:hover { transform: translateY(-2px); }
.share-btn[data-share="facebook"]:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.share-btn[data-share="twitter"]:hover  { background: #0F2233; border-color: #0F2233; color: #fff; }
.share-btn[data-share="linkedin"]:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.share-btn[data-share="line"]:hover     { background: #06C755; border-color: #06C755; color: #fff; }
.share-btn[data-share="copy"]:hover     { background: #1C9DD8; border-color: #1C9DD8; color: #fff; }
.share-btn[data-copied="true"]          { background: #45B86E; border-color: #45B86E; color: #fff; }
.share-btn:focus-visible { outline: 3px solid #5DBFE8; outline-offset: 2px; }

/* ---------- Save button ---------- */
.save-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E5ECF3;
  color: #2A3C52;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.save-btn:hover { color: #1C9DD8; border-color: #92D4F0; }
.save-btn[aria-pressed="true"] { background: #E7F5FC; border-color: #1C9DD8; color: #106990; }
.save-btn[aria-pressed="true"] .save-icon { fill: #1C9DD8; stroke: #1C9DD8; }
.save-btn[aria-pressed="true"] .save-label::before { content: "บันทึกแล้ว"; }
.save-btn[aria-pressed="true"] .save-label { font-size: 0; }
.save-btn[aria-pressed="true"] .save-label::before { font-size: 12px; }
.save-btn:focus-visible { outline: 3px solid #5DBFE8; outline-offset: 2px; }

/* ---------- Post card (flat, photo-on-top, no frame) ---------- */
.post-card { display: block; }
.post-card .card-photo {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background: #F3F8FC;
}
.post-card .card-photo img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.post-card:hover .card-photo img { transform: scale(1.03); }

.post-card .card-body { padding-top: 18px; }
.post-card h3 {
  font-family: "Plus Jakarta Sans", "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #0F2233;
  transition: color .2s;
}
.post-card:hover h3 { color: #1C9DD8; }

/* ---------- Featured post (bigger card, same flat style) ---------- */
.featured-post .card-photo { aspect-ratio: 16 / 9; border-radius: 16px; }
.featured-post h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #0F2233;
}

/* ---------- Meta / byline ---------- */
.byline {
  font-size: 12.5px;
  color: #6A7B8E;
  font-weight: 500;
}
.byline .byline-name { color: #0F2233; font-weight: 600; }
.byline .sep { margin: 0 0.5em; color: #A7B4C4; }

/* ---------- Hero photo on post pages (no frame, rounded corners only) ---------- */
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 21 / 9;
  background: #F3F8FC;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) { .hero-photo { aspect-ratio: 4 / 3; } }

/* Credit over the photo (optional, bottom-right) */
.photo-credit {
  position: absolute; right: 14px; bottom: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15,34,51,0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 2;
}
.photo-credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 2px; }

/* ---------- Article prose ---------- */
.prose-bizkit {
  font-family: "Noto Sans Thai Looped", "Plus Jakarta Sans", sans-serif;
  font-size: 17.5px;
  line-height: 1.85;
  color: #2A3C52;
  max-width: 720px;
}
.prose-bizkit > * + * { margin-top: 1.35em; }
.prose-bizkit > p:first-of-type {
  font-size: 19px;
  color: #0F2233;
  line-height: 1.72;
}

.prose-bizkit h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: #0F2233;
  margin-top: 2.2em;
  margin-bottom: 0.55em;
}
.prose-bizkit h3 {
  font-family: "Plus Jakarta Sans", "Noto Sans Thai Looped", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0F2233;
  margin-top: 1.9em;
  margin-bottom: 0.5em;
}
.prose-bizkit h4 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #1C9DD8;
  letter-spacing: 0.16em;
  margin-top: 1.6em;
  margin-bottom: 0.35em;
  text-transform: uppercase;
}
.prose-bizkit a {
  color: #1C9DD8;
  font-weight: 600;
  border-bottom: 1px solid rgba(28,157,216,0.35);
  transition: color .25s, border-color .25s;
}
.prose-bizkit a:hover { color: #106990; border-bottom-color: #106990; }

.prose-bizkit ul, .prose-bizkit ol { padding-left: 1.4em; }
.prose-bizkit ul > li { list-style: none; position: relative; margin-top: 0.55em; }
.prose-bizkit ul > li::before {
  content: ""; position: absolute; left: -1.1em; top: 0.78em;
  width: 6px; height: 6px; border-radius: 999px;
  background: #1C9DD8;
}
.prose-bizkit ol > li { margin-top: 0.55em; }
.prose-bizkit ol { list-style: decimal; }
.prose-bizkit ol > li::marker { color: #1C9DD8; font-weight: 700; }
.prose-bizkit li > p { margin: 0.2em 0; }

.prose-bizkit blockquote {
  margin: 2em 0;
  padding: 0 0 0 1.5em;
  border-left: 3px solid #1C9DD8;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.55;
  color: #0F2233;
}
.prose-bizkit blockquote p { margin: 0; }
.prose-bizkit blockquote cite {
  display: block;
  margin-top: 0.8em;
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: #6A7B8E;
}

.prose-bizkit code {
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 0.88em;
  background: #F3F8FC;
  color: #106990;
  padding: 0.12em 0.5em;
  border-radius: 5px;
}
.prose-bizkit pre {
  background: #0F2233;
  color: #C7E8F7;
  padding: 1.3rem 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.prose-bizkit pre code {
  background: transparent; color: inherit; padding: 0;
  font-family: ui-monospace, Menlo, Monaco, monospace;
  font-size: 13.5px;
}

.prose-bizkit hr {
  border: 0;
  border-top: 1px solid #E5ECF3;
  margin: 2.2em 0;
}

.prose-bizkit table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14.5px;
  background: #fff;
  border: 1px solid #E5ECF3;
  border-radius: 10px;
  overflow: hidden;
}
.prose-bizkit thead th {
  background: #F3F8FC;
  font-weight: 700;
  text-align: left;
  padding: 0.9em 1em;
  border-bottom: 1px solid #E5ECF3;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prose-bizkit tbody td {
  padding: 0.85em 1em;
  border-bottom: 1px solid #F1F3F6;
  color: #2A3C52;
}
.prose-bizkit tbody tr:last-child td { border-bottom: 0; }

.prose-bizkit .callout-brand {
  padding: 1em 1.2em 1em 2.8em;
  background: #F4FAFD;
  border: 1px solid #D6EBF7;
  border-radius: 12px;
  position: relative;
  font-size: 15px;
}
.prose-bizkit .callout-brand::before {
  content: "→";
  position: absolute; left: 0.9em; top: 0.9em;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #1C9DD8; color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
}
.prose-bizkit .callout-brand strong { color: #106990; }

.prose-bizkit .callout {
  padding: 1em 1.2em 1em 2.8em;
  background: #FFFBEF;
  border: 1px solid #F7E2A0;
  border-radius: 12px;
  position: relative;
  font-size: 15px;
}
.prose-bizkit .callout::before {
  content: "!";
  position: absolute; left: 0.9em; top: 0.95em;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: #F6B53A; color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px;
}
.prose-bizkit .callout strong { color: #9A5B00; }

.prose-bizkit figure { margin: 2em 0; }
.prose-bizkit figure img { width: 100%; border-radius: 12px; }
.prose-bizkit figure figcaption {
  margin-top: 0.7em;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  color: #6A7B8E;
  text-align: center;
}

.prose-bizkit .placeholder-note {
  margin: 0 0 1.8em;
  padding: 0.85em 1.1em;
  border-radius: 10px;
  background: #FFF8E8;
  border: 1px dashed #F6B53A;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #9A5B00;
}
.prose-bizkit .placeholder-note::before { content: "⚠ "; }

/* ---------- Saved strip ---------- */
.saved-strip {
  background: #F7FAFD;
  border-top: 1px solid #E5ECF3;
  border-bottom: 1px solid #E5ECF3;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .prose-bizkit { font-size: 16px; }
  .prose-bizkit h2 { font-size: 23px; }
  .prose-bizkit h3 { font-size: 18px; }
  .prose-bizkit blockquote { font-size: 17px; }
  .post-card h3 { font-size: 19px; }
}
