/*!
Theme Name: inekle Blog
Theme URI: https://inekle.com/blog
Author: inekle
Author URI: https://inekle.com
Description: inekle blog teması — sınav hazırlığı, taban puanları ve çalışma rehberleri için, inekle tasarım sistemiyle (warm green, yumuşak kartlar, monoline ikonlar) sitenin bir parçası gibi görünen bir blog. Üç görünüm: yazı listesi, tek yazı ve kategori.
Version: 1.7.4
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inekle-blog
Tags: blog, education, custom-colors, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* ============================================================
   BASE
   ============================================================ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.inekle-blog {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-default);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.inekle-blog a { color: var(--green-600); text-decoration: none; }
.inekle-blog a:hover { color: var(--green-400); }

.inekle-blog img { max-width: 100%; }

.ink-site { flex: 1 0 auto; display: flex; flex-direction: column; }
.ink-main { flex: 1 0 auto; }

.ink-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}
.ink-wrap--narrow { max-width: var(--container-narrow); }

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

/* ============================================================
   READING PROGRESS + BACK TO TOP
   ============================================================ */
.ink-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 100; pointer-events: none; background: transparent;
}
.ink-progress__bar { display: block; height: 100%; width: 0; background: var(--green-600); }
.ink-totop {
  position: fixed; right: 20px; bottom: 88px; z-index: 90;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--green-600); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-halo);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--duration-base), transform var(--duration-base), visibility var(--duration-base), background var(--duration-base);
}
.ink-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.ink-totop:hover { background: var(--green-400); }
.ink-totop .ink-icon { color: #fff; transform: rotate(180deg); }
@media (max-width: 600px) { .ink-totop { right: 16px; bottom: 80px; width: 40px; height: 40px; } }

/* ============================================================
   ICON — tintable line glyph (CSS mask, currentColor-style)
   ============================================================ */
.ink-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask-image: var(--ink-ico);
          mask-image: var(--ink-ico);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-position: center;  mask-position: center;
}

/* ============================================================
   BUTTON — inekle button system
   ============================================================ */
.ink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: var(--weight-medium);
  font-family: var(--font-sans);
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-base), box-shadow var(--duration-base), color var(--duration-base);
}
.ink-btn--sm { min-height: 48px; padding: 0 22px; border-radius: var(--radius-md); }
.ink-btn--primary { background: var(--green-600); color: var(--white); }
.ink-btn--primary:hover { background: var(--green-400); color: var(--white); box-shadow: var(--shadow-halo); }
.ink-btn--line { background: var(--off-white); color: var(--green-600); border-color: var(--green-600); }
.ink-btn--line:hover { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-halo); }
/* Anchors styled as buttons: keep the button's own text color (beat the
   global `.inekle-blog a` link color, which otherwise turns text green). */
.inekle-blog a.ink-btn { text-decoration: none; }
.inekle-blog a.ink-btn--primary,
.inekle-blog a.ink-btn--primary:hover { color: var(--white); }
.inekle-blog a.ink-btn--line { color: var(--green-600); }
.inekle-blog a.ink-btn--line:hover { color: var(--white); }
.ink-btn .ink-icon { color: currentColor; }

/* ============================================================
   SITE NAV
   ============================================================ */
.ink-nav {
  position: sticky; top: 0; z-index: 40;
  flex: none;
  background: #fff;
  box-shadow: var(--shadow-nav);
  /* Desktop: stacked & centered — logo on top row, menu + button below. */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  padding: 16px 40px;
  font-family: var(--font-sans);
}
.ink-nav__logo { height: 48px; width: auto; cursor: pointer; display: block; }
/* Default "inekle blog" wordmark: mark + grey "inekle" (in the SVG) + script "blog". */
.ink-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ink-brand:hover { text-decoration: none; }
.ink-brand__blog {
  font-family: var(--font-hand); font-weight: 700; font-size: 34px; line-height: 1;
  color: var(--green-600); position: relative; top: 3px;
}
/* WordPress custom logo (Site Identity upload). */
.ink-nav .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.ink-nav .custom-logo { height: 48px; width: auto; display: block; }
.ink-nav__right { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
.ink-nav__menu { display: flex; align-items: center; justify-content: center; gap: 20px 24px; flex-wrap: wrap; }
.ink-nav__links { display: flex; align-items: center; justify-content: center; gap: 20px 24px; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
/* Style both the hand-written links and WordPress menu anchors alike. */
.ink-nav__link,
.ink-nav__links a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 16px; font-weight: var(--weight-medium);
  color: var(--text-strong); cursor: pointer; position: relative;
  white-space: nowrap;
}
.ink-nav__link:hover,
.ink-nav__links a:hover { color: var(--text-strong); }
.ink-nav__link.is-active,
.ink-nav__links .current-menu-item > a,
.ink-nav__links .current_page_item > a,
.ink-nav__links a[aria-current] { font-weight: var(--weight-bold); }
.ink-nav__link .ink-icon { color: var(--green-600); }
.ink-nav__burger { cursor: pointer; display: none; color: var(--text-strong); background: none; border: 0; padding: 0; }

@media (max-width: 900px) {
  /* Mobile/tablet: compact single-row bar — logo left, burger right.
     The menu becomes an overlay panel below the bar (bar height stays fixed). */
  .ink-nav { flex-direction: row; align-items: center; justify-content: space-between; min-height: 56px; padding: 8px 16px; gap: 0; }
  .ink-nav__logo { height: 32px; }
  .ink-nav .custom-logo { height: 32px; }
  .ink-brand__blog { font-size: 24px; top: 2px; }
  .ink-nav__right { width: auto; justify-content: flex-end; }
  .ink-nav__burger { display: inline-flex; }

  /* Overlay dropdown — floats over the page, so the bar never grows. */
  .ink-nav__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 4px;
    background: #fff; border-top: 1px solid var(--border-subtle);
    box-shadow: 0 10px 16px rgba(0,0,0,.08);
    padding: 8px 20px 16px;
  }
  .ink-nav.is-open .ink-nav__menu { display: flex; }
  .ink-nav__links { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .ink-nav__links li { width: 100%; }
  .ink-nav__links a, .ink-nav__link { display: flex; width: 100%; padding: 12px 0; font-size: 17px; }
  .ink-nav__links li + li a, .ink-nav__links li + li .ink-nav__link { border-top: 1px solid var(--border-subtle); }
  .ink-nav__cta { align-self: flex-start; margin-top: 14px; }
}

/* ============================================================
   INDEX — hero, search, chips, grid
   ============================================================ */
.ink-hero {
  background: var(--green-50);
  padding: 44px 0 48px;
}
.ink-hero__inner {
  text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.ink-badge {
  display: inline-block; font-size: 13px; font-weight: var(--weight-semibold);
  color: var(--green-600); background: var(--white);
  padding: 7px 16px; border-radius: var(--radius-full); box-shadow: var(--shadow-halo);
}
.ink-hero__title {
  font-size: 40px; line-height: 1.15; font-weight: var(--weight-extrabold);
  letter-spacing: -.02em; color: var(--text-strong); margin: 0; max-width: 720px;
  text-wrap: pretty;
}
.ink-hero__sub {
  font-size: 17px; line-height: 1.6; color: var(--text-muted);
  margin: 0; max-width: 600px;
}

.ink-list-section { padding: 48px 0 72px; }

.ink-searchrow { display: flex; justify-content: center; margin-bottom: 44px; }
.ink-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 0 20px; height: 56px;
  width: 100%; max-width: 580px; box-shadow: var(--shadow-halo);
}
.ink-search .ink-icon { color: var(--gray-400); }

/* Visually hidden but available to screen readers (accessible link/button names). */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.ink-search input {
  border: none; background: transparent; outline: none;
  font-family: var(--font-sans); font-size: 16px; color: var(--text-default); width: 100%;
}
.ink-search input::placeholder { color: var(--text-placeholder); }

.ink-chips {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap; margin-bottom: 44px;
}
.ink-chip {
  display: inline-flex; align-items: center;
  padding: 9px 18px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: var(--weight-medium);
  cursor: pointer; transition: all .2s;
  background: var(--green-50); color: var(--green-600);
}
.ink-chip:hover { background: var(--green-100); color: var(--green-600); }
.ink-chip.is-active { background: var(--green-600); color: #fff; }
.ink-chip.is-active:hover { background: var(--green-600); color: #fff; }

.ink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}
.ink-grid--related { grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 26px; }

/* ============================================================
   BLOG CARD
   ============================================================ */
.ink-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-halo);
  overflow: hidden;
  font-family: var(--font-sans);
  display: flex; flex-direction: column;
  height: 100%;
}
a.ink-card { color: inherit; }
a.ink-card:hover { color: inherit; }
.ink-card__media {
  height: 160px; background: var(--green-100);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ink-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ink-card__media .ink-icon { color: var(--green-600); }
.ink-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ink-card__cat { font-size: 12px; font-weight: var(--weight-semibold); color: var(--green-700); } /* green-700 for WCAG AA contrast at 12px. */
.ink-card__title { font-size: 17px; font-weight: var(--weight-bold); color: var(--text-strong); line-height: 1.35; }
.ink-card__excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.ink-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-subtle); margin-top: 2px; }
.ink-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.ink-card__meta .ink-icon { color: var(--gray-400); }

/* ============================================================
   PAGINATION
   ============================================================ */
.ink-pagination { display: flex; justify-content: center; margin-top: 52px; }
.ink-pageinner { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; font-family: var(--font-sans); }
.ink-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 8px; border: none; cursor: pointer;
  border-radius: var(--radius-full); background: transparent; color: var(--text-strong);
  font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
a.page-numbers:hover { background: var(--green-50); color: var(--text-strong); }
.ink-pagination .page-numbers.current { background: var(--green-600); color: #fff; }
.ink-pagination .page-numbers.dots { background: transparent; cursor: default; padding: 0 2px; }
.ink-pagination .prev, .ink-pagination .next { color: var(--text-strong); background: none; padding: 0; }
.ink-pagination .prev .ink-icon, .ink-pagination .next .ink-icon { color: inherit; }

/* ============================================================
   CATEGORY HEADER
   ============================================================ */
.ink-cathead { background: var(--green-50); padding: 56px 0 60px; }
.ink-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; flex-wrap: wrap; }
.ink-breadcrumb .sep { color: var(--gray-300); }
.ink-breadcrumb .current { color: var(--text-strong); font-weight: var(--weight-semibold); }
.ink-cathead__title { font-size: 38px; font-weight: var(--weight-extrabold); letter-spacing: -.02em; color: var(--text-strong); margin: 0 0 10px; }
.ink-cathead__desc { font-size: 17px; color: var(--text-muted); margin: 0; max-width: 640px; line-height: 1.5; }
.ink-cathead__count { font-size: 14px; color: var(--text-subtle); margin: 14px 0 0; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.ink-posthead { background: var(--green-50); padding: 32px 0 32px; }
.ink-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: var(--weight-medium); color: var(--green-600);
  margin-bottom: 14px; cursor: pointer;
}
.ink-back:hover { color: var(--green-400); }
.ink-back .ink-icon { color: currentColor; }
.ink-posthead__pill {
  display: inline-block; font-size: 12px; font-weight: var(--weight-semibold);
  color: var(--green-600); background: var(--white); padding: 6px 13px;
  border-radius: var(--radius-full); margin-bottom: 16px;
}
.ink-posthead__title {
  font-size: 40px; line-height: 1.2; font-weight: var(--weight-extrabold);
  letter-spacing: -.02em; color: var(--text-strong); margin: 0; text-wrap: pretty;
}
.ink-postmeta { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
/* Meta moved below the cover image — separated from the article with a divider. */
.ink-postmeta--below { margin: 0 0 32px; padding-bottom: 20px; border-bottom: 1px solid var(--border-subtle); }
.ink-postmeta > span { display: inline-flex; align-items: center; gap: 6px; }
.ink-postmeta .ink-author { gap: 8px; }
.ink-postmeta .ink-author b { color: var(--text-strong); font-weight: var(--weight-semibold); }
.ink-postmeta .ink-icon { color: var(--gray-400); }

.ink-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); overflow: hidden;
  background: var(--green-100); color: var(--green-600);
  font-weight: var(--weight-semibold); border: 1px solid var(--border-subtle);
  flex: none;
}
.ink-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ink-avatar--sm { width: 32px; height: 32px; font-size: 12px; }
.ink-avatar--lg { width: 56px; height: 56px; font-size: 21px; }

.ink-posthero {
  height: 380px; border-radius: 24px; overflow: hidden; background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  margin: 32px 0 28px; box-shadow: var(--shadow-halo);
}
.ink-posthero img { width: 100%; height: 100%; object-fit: cover; }
.ink-posthero--illust img { width: auto; height: 78%; object-fit: contain; }

/* Article body — styles the_content() to match the design. Body text scales
   with --ink-fs (the A−/A+ control); headings stay fixed. */
.ink-article { font-size: calc(18px * var(--ink-fs, 1)); line-height: 1.75; color: var(--text-default); }
.ink-article > p { margin: 0 0 24px; }
.ink-article > p:last-child { margin-bottom: 8px; }
.ink-article strong, .ink-article b { color: var(--text-strong); }
.ink-article h2 {
  font-size: 26px; font-weight: var(--weight-bold); color: var(--text-strong);
  margin: 40px 0 16px; letter-spacing: -.01em; line-height: 1.25;
}
.ink-article h3 {
  font-size: 21px; font-weight: var(--weight-bold); color: var(--text-strong);
  margin: 32px 0 14px; letter-spacing: -.01em;
}
.ink-article h2:first-child, .ink-article h3:first-child { margin-top: 0; }
.ink-article ul, .ink-article ol { margin: 0 0 24px; padding-left: 24px; }
.ink-article li { margin-bottom: 10px; }
.ink-article a { color: var(--green-600); text-decoration: underline; }
.ink-article img { border-radius: var(--radius-lg); margin: 8px 0 24px; }
.ink-article figure { margin: 8px 0 24px; }
.ink-article figcaption { font-size: 14px; color: var(--text-subtle); margin-top: 8px; text-align: center; }

/* Blockquote → inekle "tip" box */
.ink-article blockquote {
  background: var(--green-50); border-radius: var(--radius-lg);
  padding: 24px 28px; margin: 0 0 32px; border: 0;
  font-size: 16px; line-height: 1.6; color: var(--text-muted);
  position: relative;
}
.ink-article blockquote p { margin: 0 0 8px; }
.ink-article blockquote p:last-child { margin-bottom: 0; }

/* Tables → green-header inekle table. Wrapped in a scroll container so wide
   tables (taban puanı listeleri) scroll horizontally instead of overflowing. */
.ink-article .ink-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 32px; }
.ink-article .ink-tablewrap::-webkit-scrollbar { height: 8px; }
.ink-article .ink-tablewrap::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 999px; }
.ink-article table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; margin: 0 0 32px; font-size: 15px;
}
.ink-article .ink-tablewrap > table { margin-bottom: 0; }
.ink-article thead th {
  background: var(--green-600); color: #fff; font-weight: var(--weight-semibold);
  text-align: left; padding: 14px 20px; white-space: nowrap;
}
.ink-article tbody td { padding: 14px 20px; color: var(--text-muted); border: 0; }
.ink-article tbody td:first-child { font-weight: var(--weight-semibold); color: var(--text-strong); }
.ink-article tbody tr:nth-child(even) { background: var(--green-50); }
/* On narrow screens give the table a minimum width so columns stay readable
   and the wrapper scrolls instead of crushing the cells. */
@media (max-width: 820px) {
  .ink-article .ink-tablewrap > table { min-width: 600px; }
}

/* Tags */
.ink-tags { display: flex; gap: 10px; flex-wrap: wrap; margin: 40px 0 8px; }
.ink-tag {
  font-size: 13px; color: var(--green-600); background: var(--green-50);
  padding: 8px 14px; border-radius: var(--radius-full); font-weight: var(--weight-medium);
}

/* Author box */
.ink-authorbox {
  display: flex; align-items: center; gap: 16px; padding: 24px;
  border: 1px solid var(--border-subtle); border-radius: 20px; margin: 36px 0 8px;
}
.ink-authorbox__name { font-weight: var(--weight-bold); color: var(--text-strong); font-size: 17px; }
.ink-authorbox__bio { font-size: 15px; color: var(--text-muted); line-height: 1.55; margin-top: 4px; }

/* Share bar */
.ink-share {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 40px 0 8px; padding: 20px 0; border-top: 1px solid var(--border-subtle);
}
.ink-share__label { font-size: 15px; font-weight: var(--weight-semibold); color: var(--text-strong); }
.ink-share__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ink-share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle); background: var(--white);
  color: var(--text-muted); cursor: pointer; position: relative;
  transition: color var(--duration-base), border-color var(--duration-base), background var(--duration-base);
}
.inekle-blog a.ink-share__btn { color: var(--text-muted); text-decoration: none; }
.ink-share__btn:hover, .inekle-blog a.ink-share__btn:hover { color: var(--green-600); border-color: var(--green-600); background: var(--green-50); }
.ink-share__btn .ink-icon { color: currentColor; }
.ink-share__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--text-strong); color: #fff; font-size: 12px; font-weight: var(--weight-medium);
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--duration-base);
}
.ink-share__copy.is-copied .ink-share__tip { opacity: 1; }

/* ============================================================
   LIVE SEARCH · TEXT-SIZE · AUTOLINK · IMAGE FADE-IN
   ============================================================ */
.ink-livesearch { position: relative; width: 100%; max-width: 580px; }
.ink-livesearch__results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--border-subtle);
  border-radius: 14px; box-shadow: var(--shadow-popover); overflow: hidden; text-align: left;
}
.inekle-blog a.ink-livesearch__item {
  display: block; padding: 12px 18px; font-size: 15px; color: var(--text-strong);
  border-bottom: 1px solid var(--border-subtle); text-decoration: none;
}
.ink-livesearch__item:last-child { border-bottom: 0; }
.inekle-blog a.ink-livesearch__item:hover { background: var(--green-50); color: var(--green-600); }
.ink-livesearch__empty { padding: 16px 18px; font-size: 14px; color: var(--text-subtle); }

/* Article font-size control */
.ink-textsize { display: inline-flex; gap: 6px; margin-left: auto; }
.ink-textsize__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--border-subtle);
  background: var(--white); border-radius: var(--radius-full); cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; font-weight: var(--weight-semibold);
  color: var(--text-muted); line-height: 1; transition: color var(--duration-base), border-color var(--duration-base), background var(--duration-base);
}
.ink-textsize__btn span { font-size: 12px; line-height: 1; margin-left: 1px; }
.ink-textsize__btn:hover { color: var(--green-600); border-color: var(--green-600); background: var(--green-50); }

/* Auto internal links — subtle, distinguishable from body text */
.inekle-blog .ink-article a.ink-autolink { color: var(--green-600); text-decoration: underline; text-decoration-color: var(--green-200); text-underline-offset: 2px; }
.inekle-blog .ink-article a.ink-autolink:hover { text-decoration-color: var(--green-600); }

/* Image fade-in (only when JS is active, so no-JS still shows images) */
/* Fade-in only for lazy (below-the-fold) images. Eager/LCP images must never
   start at opacity:0 or the browser can't paint them → delayed LCP. */
.js img.ink-fade[loading="lazy"] { opacity: 0; transition: opacity var(--duration-slow, .4s) ease; }
.js img.ink-fade[loading="lazy"].is-loaded { opacity: 1; }

/* In-article lesson CTA banner */
.ink-lessoncta {
  display: flex; align-items: center; gap: 28px;
  background: var(--green-50); border: 1px solid var(--border-primary-soft);
  border-radius: var(--radius-xl); padding: 28px 32px; margin: 44px 0 8px;
  overflow: hidden;
}
.ink-lessoncta__text { flex: 1; min-width: 0; }
.ink-lessoncta__title { font-size: 22px; font-weight: var(--weight-extrabold); color: var(--text-strong); letter-spacing: -.01em; margin-bottom: 8px; line-height: 1.25; }
.ink-lessoncta__sub { font-size: 16px; color: var(--text-muted); line-height: 1.55; margin: 0 0 18px; }
.ink-lessoncta__art { width: 150px; height: auto; flex: none; }
@media (max-width: 600px) {
  .ink-lessoncta { flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; padding: 24px; }
  .ink-lessoncta__art { width: 120px; align-self: center; order: -1; }
  .ink-lessoncta__title { font-size: 20px; }
  .ink-lessoncta__sub { font-size: 15px; }
}

/* Related */
.ink-related { padding: 64px 0 24px; }
.ink-related__title { font-size: 28px; font-weight: var(--weight-bold); color: var(--text-strong); margin: 0 0 28px; letter-spacing: -.01em; }

/* ============================================================
   CTA BAND
   ============================================================ */
.ink-cta { background: var(--green-600); padding: 64px 0; }
.ink-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.ink-cta__text { flex: 1; min-width: 280px; }
.ink-cta__title { font-size: 30px; font-weight: var(--weight-extrabold); color: #fff; margin: 0 0 10px; letter-spacing: -.01em; }
.ink-cta__sub { font-size: 17px; color: rgba(255,255,255,.85); margin: 0; max-width: 520px; line-height: 1.55; }
.ink-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.inekle-blog .ink-cta a.ink-btn--primary,
.inekle-blog .ink-cta a.ink-btn--primary:hover { background: #fff; color: var(--green-600); border-color: #fff; }
.inekle-blog .ink-cta a.ink-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.inekle-blog .ink-cta a.ink-btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
/* Footer is scaled ~0.8 relative to the original design (more compact). */
.ink-footer { background: var(--off-white); padding: 64px 0 26px; font-family: var(--font-sans); flex: none; }
.ink-footer__top { display: flex; justify-content: space-between; gap: 52px; flex-wrap: wrap; }
.ink-footer__brand { max-width: 260px; }
.ink-footer__logo { height: 38px; margin-bottom: 10px; }
.ink-footer__blurb { font-size: 14px; color: var(--text-strong); margin: 0 0 20px; line-height: 1.5; }
.ink-footer__follow { font-size: 15px; font-weight: var(--weight-bold); margin-bottom: 11px; color: var(--text-strong); }
.ink-footer__social { display: flex; gap: 13px; }
.ink-footer__social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text-strong); } /* 44px tap target. */
.ink-footer__social a:hover { color: var(--green-600); }
.ink-footer__social .ink-icon { color: inherit; cursor: pointer; }
.ink-footer__coltitle { font-size: 15px; font-weight: var(--weight-bold); color: var(--text-strong); margin-bottom: 13px; }
/* Column title as a button (accordion toggle on mobile) — plain heading on desktop. */
.ink-footer__coltitle--toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: none; border: 0; padding: 0; text-align: left;
  font-family: inherit; cursor: default;
}
.ink-footer__chev { display: none; color: var(--text-strong); }
.ink-footer__follow-block--mobile { display: none; }
.ink-footer__badge-link { display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 148px; box-sizing: border-box; }
.ink-footer__badge { height: 42px; width: auto; display: block; }
/* Google Play SVG ships without a frame — add one so it matches the App Store badge. */
.ink-footer__badge-link--framed {
  border: 1px solid #2c2c2c; border-radius: 8px; background: #fff;
  padding: 0 16px; justify-content: center;
}
.ink-footer__badge-link--framed .ink-footer__badge { height: 24px; }
.ink-footer__col ul, .ink-footer__collist { list-style: none; margin: 0; padding: 0; }
.ink-footer__col li { font-size: 14px; color: var(--text-strong); margin-bottom: 10px; cursor: pointer; }
.ink-footer__col a { display: inline-block; padding: 4px 0; color: var(--text-strong); } /* Larger tap target. */
.ink-footer__col a:hover { color: var(--green-600); }
.ink-footer__contact { max-width: 220px; }
.ink-footer__contact div { font-size: 14px; color: var(--text-strong); margin-bottom: 10px; line-height: 1.5; }
.inekle-blog .ink-footer__contact a { color: var(--text-strong); }
.inekle-blog .ink-footer__contact a:hover { color: var(--green-600); }
.ink-footer .ink-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.ink-footer__cta { display: flex; justify-content: flex-end; gap: 40px; align-items: center; margin-top: 38px; flex-wrap: wrap; }
.ink-footer__buttons { display: flex; gap: 13px; }
.ink-footer__badges { display: flex; gap: 10px; }
.ink-badge-store {
  height: 34px; border-radius: 7px; background: var(--gray-900); color: #fff;
  display: inline-flex; align-items: center; gap: 7px; padding: 0 12px;
}
.inekle-blog a.ink-badge-store { color: #fff; text-decoration: none; }
.inekle-blog a.ink-badge-store:hover { color: #fff; opacity: .9; }
.ink-badge-store .ink-icon { color: #fff; }
.ink-badge-store small { font-size: 8px; opacity: .8; display: block; line-height: 1.1; }
.ink-badge-store b { font-size: 12px; line-height: 1.1; }
.ink-footer__rule { height: 1px; background: var(--gray-200); opacity: .4; margin: 20px 0; }
.ink-footer__copy { display: flex; justify-content: flex-end; align-items: center; gap: 26px; font-size: 14px; color: var(--text-strong); flex-wrap: wrap; }
.ink-footer__copy .sep { width: 1px; height: 16px; background: var(--gray-200); }
.ink-footer__copy a { color: var(--text-strong); text-decoration: underline; }
.ink-footer__bev { display: inline-flex; align-items: center; }
.ink-footer__bev img { height: 22px; width: auto; display: block; }

/* ---- Footer on tablet & mobile: centered brand, accordion columns, social at bottom ---- */
@media (max-width: 1024px) {
  .ink-footer { padding: 48px 0 24px; }

  .ink-footer__top { flex-direction: column; gap: 0; }
  .ink-footer__brand { max-width: none; text-align: center; margin-bottom: 8px; }
  .ink-footer__blurb { margin-left: auto; margin-right: auto; max-width: 420px; }
  .ink-footer__follow-block--desktop { display: none; }
  .ink-footer__follow-block--mobile { display: block; text-align: center; margin-top: 28px; }
  .ink-footer__follow-block--mobile .ink-footer__social { justify-content: center; }

  /* Accordion columns (open by default; tap the title to collapse). */
  .ink-footer__col { border-top: 1px solid var(--border-subtle); }
  .ink-footer__coltitle--toggle { cursor: pointer; margin: 0; padding: 16px 0; }
  .ink-footer__chev { display: inline-block; transition: transform var(--duration-base); transform: rotate(180deg); }
  .ink-footer__col.is-collapsed .ink-footer__chev { transform: rotate(0deg); }
  .ink-footer__collist { padding-bottom: 14px; }
  .ink-footer__col.is-collapsed .ink-footer__collist { display: none; }

  .ink-footer__contact { max-width: none; border-top: 1px solid var(--border-subtle); padding-top: 16px; text-align: center; }
  .ink-footer__contact .ink-footer__coltitle { margin-bottom: 12px; }

  .ink-footer__cta { flex-direction: column; align-items: center; gap: 16px; margin-top: 28px; }
  /* Buttons & store badges wrap and shrink so they never cause horizontal scroll. */
  .ink-footer__buttons { justify-content: center; flex-wrap: wrap; }
  .ink-footer__badges { justify-content: center; flex-wrap: wrap; }
  .ink-footer__badge-link { min-width: 0; }
  .ink-footer__copy { justify-content: center; text-align: center; gap: 8px 14px; margin-top: 4px; }
  .ink-footer__copy .sep { display: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .ink-hero { padding: 40px 0 44px; }
  .ink-hero__title { font-size: 31px; }
  .ink-hero__sub { font-size: 16px; }
  .ink-posthead__title { font-size: 32px; }
  .ink-cathead__title { font-size: 30px; }
  /* Roomier reading rhythm on tablets. */
  .ink-article { font-size: calc(17px * var(--ink-fs, 1)); line-height: 1.8; }
  .ink-article > p { margin: 0 0 22px; }
  .ink-article ul, .ink-article ol { margin: 0 0 22px; }
  .ink-article li { margin-bottom: 12px; }
  .ink-article h2 { font-size: 23px; margin: 36px 0 14px; }
  .ink-article h3 { font-size: 20px; margin: 28px 0 12px; }
  .ink-article blockquote { margin-bottom: 28px; }
  .ink-related__title { font-size: 24px; }
  .ink-cta__title { font-size: 26px; }
  .ink-cta__sub { font-size: 16px; }
  .ink-posthero { height: 300px; }
}

/* ---- Phone ---- */
@media (max-width: 600px) {
  .ink-wrap { padding: 0 18px; }

  .ink-hero { padding: 40px 0 44px; }
  .ink-hero__title { font-size: 27px; line-height: 1.2; }
  .ink-hero__sub { font-size: 15px; line-height: 1.55; }
  .ink-badge { font-size: 12px; padding: 6px 13px; }

  .ink-list-section { padding: 32px 0 48px; }
  .ink-search { height: 50px; padding: 0 16px; }
  .ink-search input { font-size: 15px; }

  .ink-card__title { font-size: 16px; }

  .ink-cathead { padding: 40px 0 40px; }
  .ink-cathead__title { font-size: 25px; }
  .ink-cathead__desc { font-size: 15px; }

  .ink-posthead { padding: 36px 0 32px; }
  .ink-posthead__title { font-size: 24px; line-height: 1.25; }
  .ink-postmeta { font-size: 13px; gap: 12px 16px; }
  .ink-posthero { height: 200px; margin: 28px 0 32px; }

  .ink-article { font-size: calc(16px * var(--ink-fs, 1)); line-height: 1.75; }
  .ink-article > p { margin: 0 0 20px; }
  .ink-article h2 { font-size: 21px; margin: 28px 0 12px; }
  .ink-article h3 { font-size: 18px; margin: 24px 0 12px; }
  .ink-article blockquote { padding: 18px 20px; }
  .ink-article table { font-size: 14px; }
  .ink-article thead th, .ink-article tbody td { padding: 12px 14px; }

  .ink-authorbox { padding: 20px; gap: 14px; }
  .ink-related { padding: 48px 0 16px; }
  .ink-related__title { font-size: 22px; }

  .ink-cta { padding: 48px 0; }
  .ink-cta__inner { flex-direction: column; align-items: flex-start; }
  .ink-cta__title { font-size: 23px; }
  .ink-cta__sub { font-size: 15px; }
}

/* ============================================================
   PRINT / PDF — clean article only
   ============================================================ */
@media print {
  .ink-nav, .ink-footer, .ink-cta, .ink-share, .ink-lessoncta,
  .ink-back, .ink-progress, .ink-totop, .ink-related, .ink-textsize,
  .ink-breadcrumb { display: none !important; }

  body.inekle-blog { color: #000; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ink-site, .ink-main { display: block; }
  .ink-wrap, .ink-wrap--narrow { max-width: 100% !important; padding: 0 !important; }

  .ink-posthead { background: #fff !important; padding: 0 0 8px !important; }
  .ink-posthead__title { font-size: 22pt !important; }
  .ink-postmeta--below { border-color: #ccc !important; margin-bottom: 16px !important; }

  .ink-posthero { box-shadow: none !important; border-radius: 8px; margin: 12px 0 16px !important; height: auto !important; max-height: 340px; }
  .ink-posthero img { height: auto !important; }

  .ink-article { font-size: 12pt !important; line-height: 1.5 !important; color: #000 !important; }
  .ink-article h2 { font-size: 15pt !important; }
  .ink-article h3 { font-size: 13pt !important; }
  .ink-article a, .ink-article a.ink-autolink { color: #000 !important; text-decoration: underline; }
  .ink-article blockquote { background: #f4f4f4 !important; border: 1px solid #ddd; }
  .ink-tablewrap { overflow: visible !important; }
  .ink-article table { min-width: 0 !important; font-size: 10pt !important; page-break-inside: avoid; }
  .ink-article thead th { background: #eee !important; color: #000 !important; }
  .ink-article img { max-width: 100% !important; page-break-inside: avoid; }
  .ink-authorbox { border-color: #ccc !important; }
  a[href^="http"]::after { content: ""; }
}
