/*
Theme Name: NAK Digitech Blog
Theme URI: https://www.nakdigitech.com/
Author: NAK Digitech
Description: Blog theme matching the NAK Digitech website. Loads the live site stylesheet so the blog never looks a version behind. Generated by _wp_theme.py.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nak-digitech
Tags: blog, one-column, custom-colors
*/

/* The main site stylesheet is loaded first and does the heavy lifting.
   Everything below is only what long-form articles need on top of it. */

.post-body { font-size: 1.06rem; line-height: 1.78; color: var(--text); }
.post-body > * + * { margin-top: 1.15em; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  margin-top: 2.2em;
  letter-spacing: -.01em;
}
.post-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 2.2vw, 1.4rem);
  margin-top: 1.8em;
}
.post-body a { color: #0B7A70; text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: #E8462C; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li + li { margin-top: .5em; }
.post-body img, .post-body figure img { border-radius: 14px; max-width: 100%; height: auto; }
.post-body figcaption { font-size: .86rem; color: var(--text-muted); margin-top: 10px; text-align: center; }
.post-body blockquote {
  border-left: 3px solid var(--brand-teal);
  padding: 4px 0 4px 20px;
  margin-left: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
}
.post-body code {
  background: var(--bg-3);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: .9em;
}
.post-body pre {
  background: var(--bg-3);
  padding: 18px;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
}
.post-body pre code { background: none; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post-body th { background: var(--bg-2); font-weight: 600; }

.post-thumb {
  margin: -6px -6px 16px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-hero-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.post-hero-img img { width: 100%; height: auto; display: block; }

/* Pagination, styled to match the site's buttons */
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--text);
  font-size: .93rem; text-decoration: none;
  transition: all .3s var(--ease);
}
.pagination .page-numbers:hover { border-color: rgba(18,163,150,.45); transform: translateY(-2px); }
.pagination .page-numbers.current {
  background-color: #0E8478;
  background-image: linear-gradient(120deg,#0E8478,#0A5F6E);
  border-color: transparent; color: #fff;
}

/* WordPress core alignment classes */
.alignleft  { float: left;  margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide, .alignfull { max-width: 100%; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

@media (max-width: 640px) {
  .post-body { font-size: 1rem; }
  .alignleft, .alignright { float: none; margin: 16px 0; }
}
