/* GAPKI Editorial — compact category, single post, and native blog-sidebar styling. */
body.category,
body.single-post {
  --gk-editorial-accent: #1f6b52;
  --gk-editorial-accent-dark: #123b30;
  --gk-editorial-ink: #1c2924;
  --gk-editorial-muted: #69756f;
  --gk-editorial-line: #e0e5e1;
  --gk-editorial-soft: #f4f7f4;
  --gk-editorial-card: #ffffff;
  --gk-editorial-radius: 12px;
  --gk-editorial-max: 1160px;
  --gk-editorial-sidebar: 300px;
  --gk-editorial-gap: 30px;
  background: #fff;
}

.gk-editorial-page,
.gk-editorial-page * {
  box-sizing: border-box;
}

.gk-editorial-page {
  color: var(--gk-editorial-ink);
  background: #fff;
}

.gk-editorial-shell {
  width: min(calc(100% - 36px), var(--gk-editorial-max));
  margin: 0 auto;
}

.gk-category-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--gk-editorial-line);
}

.gk-section-kicker,
.gk-story-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: var(--gk-editorial-accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
}

.gk-section-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 99px;
  background: var(--gk-editorial-accent);
}

.gk-category-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--gk-editorial-accent-dark);
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
}

.gk-category-description {
  max-width: 720px;
  margin-top: 8px;
  color: var(--gk-editorial-muted);
  font-size: 14px;
  line-height: 1.55;
}

.gk-category-description p {
  margin: 0;
}

.gk-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--gk-editorial-sidebar);
  gap: var(--gk-editorial-gap);
  align-items: start;
  padding: 22px 0 48px;
}

.gk-editorial-main {
  min-width: 0;
}

.gk-lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  overflow: hidden;
  margin: 0 0 12px;
  border: 1px solid var(--gk-editorial-line);
  border-radius: var(--gk-editorial-radius);
  background: var(--gk-editorial-card);
}

.gk-lead-media {
  display: block;
  min-height: 100%;
  overflow: hidden;
  background: var(--gk-editorial-soft);
}

.gk-lead-media img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.gk-lead-story:hover .gk-lead-media img {
  transform: scale(1.02);
}

.gk-lead-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.gk-lead-body h2,
.gk-news-body h2 {
  margin: 0;
}

.gk-lead-body h2 a {
  color: var(--gk-editorial-ink);
  font-size: clamp(24px, 2.35vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
  font-weight: 800;
  text-decoration: none;
}

.gk-lead-body h2 a:hover,
.gk-news-body h2 a:hover,
.gk-editorial-sidebar a:hover {
  color: var(--gk-editorial-accent);
}

.gk-story-excerpt {
  margin: 10px 0 0;
  color: var(--gk-editorial-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.gk-story-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--gk-editorial-muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.gk-story-meta--top {
  margin: 0 0 5px;
  font-size: 10.5px;
}

.gk-news-row {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gk-editorial-line);
}

.gk-news-media {
  display: block;
  overflow: hidden;
  border-radius: 9px;
  background: var(--gk-editorial-soft);
}

.gk-news-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 112px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .3s ease;
}

.gk-news-row:hover .gk-news-media img {
  transform: scale(1.025);
}

.gk-news-body {
  align-self: center;
  min-width: 0;
}

.gk-news-body h2 a {
  display: block;
  color: var(--gk-editorial-ink);
  font-size: 18px;
  line-height: 1.28;
  letter-spacing: -.012em;
  font-weight: 750;
  text-decoration: none;
}

.gk-news-body .gk-story-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gk-index-cta {
  display: flex;
  justify-content: center;
  padding: 26px 0 4px;
}

.gk-index-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--gk-editorial-accent);
  border-radius: 8px;
  background: var(--gk-editorial-accent);
  color: #fff !important;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 8px 20px rgba(18, 59, 48, .12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.gk-index-button:hover,
.gk-index-button:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  filter: brightness(.94);
  box-shadow: 0 10px 24px rgba(18, 59, 48, .18);
}

.gk-index-button:focus-visible {
  outline: 2px solid var(--gk-editorial-accent);
  outline-offset: 3px;
}

.gk-index-button__arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .2s ease;
}

.gk-index-button:hover .gk-index-button__arrow {
  transform: translateX(3px);
}

.gk-empty-state {
  padding: 34px 0;
}

/* Native Neve / WordPress widgets. Markup stays untouched. */
.gk-editorial-sidebar,
.post-sidebar.gk-editorial-sidebar {
  width: auto;
  min-width: 0;
}

.gk-editorial-sidebar.is-sticky,
body.gk-sidebar-sticky .gk-editorial-sidebar {
  position: sticky;
  top: 88px;
}

.gk-editorial-sidebar .widget {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--gk-editorial-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.gk-editorial-sidebar .widget-title,
.gk-editorial-sidebar .widget .widget-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px !important;
  padding: 0 0 9px !important;
  border-bottom: 1px solid var(--gk-editorial-line);
  background: none !important;
  color: var(--gk-editorial-accent-dark) !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase !important;
}

.gk-editorial-sidebar .widget-title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 99px;
  background: var(--gk-editorial-accent);
}

.gk-editorial-sidebar ul,
.gk-editorial-sidebar ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gk-editorial-sidebar li {
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #edf0ee;
}

.gk-editorial-sidebar li:first-child {
  padding-top: 2px;
}

.gk-editorial-sidebar li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.gk-editorial-sidebar li a {
  color: var(--gk-editorial-ink);
  font-size: 13px;
  line-height: 1.42;
  font-weight: 650;
  text-decoration: none;
}

.gk-editorial-sidebar .post-date,
.gk-editorial-sidebar time,
.gk-fallback-list time {
  display: block;
  margin-top: 3px;
  color: var(--gk-editorial-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.gk-editorial-sidebar img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.gk-editorial-sidebar input[type="search"],
.gk-editorial-sidebar input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--gk-editorial-line);
  border-radius: 8px;
  font-size: 12px;
}

.gk-editorial-sidebar button,
.gk-editorial-sidebar input[type="submit"] {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--gk-editorial-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Hide visual article counts without touching widget data/settings. */
.gk-editorial-sidebar .count,
.gk-editorial-sidebar .cat-count,
.gk-editorial-sidebar .gk-tag-count {
  display: none !important;
}

/* Single article */
.gk-editorial-layout--single {
  padding-top: 28px;
}

.gk-single-header {
  max-width: 820px;
  margin-bottom: 18px;
}

.gk-single-header .gk-story-label {
  margin-bottom: 9px;
}

.gk-single-header h1 {
  margin: 0;
  color: var(--gk-editorial-accent-dark);
  font-size: clamp(30px, 3.3vw, 44px);
  line-height: 1.09;
  letter-spacing: -.03em;
  font-weight: 820;
}

.gk-single-meta {
  margin-top: 11px;
}

.gk-single-featured {
  margin: 0 0 24px;
}

.gk-single-featured img {
  display: block;
  width: 100%;
  max-height: 500px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--gk-editorial-radius);
}

.gk-single-featured figcaption {
  margin-top: 7px;
  color: var(--gk-editorial-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.gk-single-content {
  max-width: 790px;
  color: #26312d;
  font-size: 17px;
  line-height: 1.76;
}

.gk-single-content > :first-child {
  margin-top: 0;
}

.gk-single-content p,
.gk-single-content ul,
.gk-single-content ol {
  margin-bottom: 1.15em;
}

.gk-single-content h2,
.gk-single-content h3,
.gk-single-content h4 {
  margin: 1.55em 0 .55em;
  color: var(--gk-editorial-accent-dark);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.gk-single-content h2 { font-size: 27px; }
.gk-single-content h3 { font-size: 22px; }
.gk-single-content h4 { font-size: 18px; }

.gk-single-content blockquote {
  margin: 1.35em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--gk-editorial-accent);
  background: var(--gk-editorial-soft);
  color: var(--gk-editorial-accent-dark);
}

.gk-single-content img {
  border-radius: 9px;
}

.gk-single-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.gk-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--gk-editorial-line);
}

.gk-single-tags a {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--gk-editorial-soft);
  color: var(--gk-editorial-accent-dark);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.gk-related {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--gk-editorial-line);
}

.gk-related-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.gk-related-head h2 {
  margin: 0;
  color: var(--gk-editorial-accent-dark);
  font-size: 16px;
  font-weight: 800;
}

.gk-related-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gk-editorial-line);
}

.gk-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gk-related-card {
  min-width: 0;
}

.gk-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
}

.gk-related-card h3 {
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.35;
}

.gk-related-card h3 a {
  color: var(--gk-editorial-ink);
  text-decoration: none;
}

@media (max-width: 980px) {
  .gk-editorial-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 24px;
  }

  .gk-lead-story {
    grid-template-columns: 1fr;
  }

  .gk-lead-media img {
    min-height: 0;
    aspect-ratio: 16 / 8;
  }
}

@media (max-width: 820px) {
  .gk-editorial-shell {
    width: min(calc(100% - 28px), var(--gk-editorial-max));
  }

  .gk-editorial-layout {
    grid-template-columns: 1fr;
    padding-bottom: 36px;
  }

  .gk-editorial-sidebar,
  body.gk-sidebar-sticky .gk-editorial-sidebar {
    position: static;
  }

  .gk-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .gk-category-header {
    padding: 18px 0 12px;
  }

  .gk-editorial-layout,
  .gk-editorial-layout--single {
    padding-top: 15px;
  }

  .gk-lead-body {
    padding: 17px;
  }

  .gk-lead-body h2 a {
    font-size: 23px;
  }

  .gk-story-excerpt {
    font-size: 12.5px;
  }

  .gk-news-row {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
  }

  .gk-news-media img {
    min-height: 82px;
  }

  .gk-news-body h2 a {
    font-size: 15px;
    line-height: 1.32;
  }

  .gk-news-body .gk-story-excerpt {
    display: none;
  }

  .gk-story-meta--top {
    font-size: 9.5px;
  }

  .gk-single-header h1 {
    font-size: 29px;
  }

  .gk-single-content {
    font-size: 16px;
    line-height: 1.72;
  }

  .gk-single-content h2 { font-size: 24px; }
  .gk-single-content h3 { font-size: 20px; }

  .gk-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Optional roomier preset from Appearance > Customize > GAPKI Editorial. */
body.gk-density-balanced .gk-editorial-layout { gap: 38px; padding-top: 28px; }
body.gk-density-balanced .gk-news-row { padding-top: 18px; padding-bottom: 18px; }
body.gk-density-balanced .gk-editorial-sidebar .widget { padding: 19px; margin-bottom: 18px; }
body.gk-density-balanced .gk-lead-body { padding: 28px; }

@media (max-width: 560px) {
  .gk-index-cta { padding-top: 20px; }
  .gk-index-button { min-height: 44px; padding: 0 19px; font-size: 12.5px; }
}

/* Category full index mode: same category, denser archive, no numeric pagination. */
.gk-category-index-view .gk-category-header {
  padding-bottom: 14px;
}

.gk-category-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: var(--gk-editorial-accent);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 750;
  text-decoration: none;
}

.gk-category-back:hover,
.gk-category-back:focus-visible {
  color: var(--gk-editorial-accent-dark);
  text-decoration: none;
}

.gk-category-index-view .gk-editorial-layout {
  padding-top: 16px;
}

.gk-category-index-view .gk-index-row {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
}

.gk-category-index-view .gk-index-row .gk-news-media {
  border-radius: 8px;
}

.gk-category-index-view .gk-index-row .gk-news-media img {
  min-height: 96px;
  aspect-ratio: 16 / 9;
}

.gk-category-index-view .gk-index-row .gk-news-body h2 a {
  font-size: 17px;
  line-height: 1.28;
}

.gk-category-index-view .gk-index-row .gk-story-excerpt {
  margin-top: 5px;
  font-size: 12.5px;
  line-height: 1.48;
}

.gk-index-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--gk-editorial-line);
}

.gk-index-nav__next {
  text-align: right;
}

.gk-index-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--gk-editorial-line);
  border-radius: 8px;
  background: #fff;
  color: var(--gk-editorial-accent-dark);
  font-size: 11.5px;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.gk-index-nav a:hover,
.gk-index-nav a:focus-visible {
  border-color: var(--gk-editorial-accent);
  background: var(--gk-editorial-soft);
  color: var(--gk-editorial-accent);
  text-decoration: none;
}

@media (max-width: 560px) {
  .gk-category-index-view .gk-index-row {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 11px;
    padding: 11px 0;
  }

  .gk-category-index-view .gk-index-row .gk-news-media img {
    min-height: 72px;
  }

  .gk-category-index-view .gk-index-row .gk-news-body h2 a {
    font-size: 14.5px;
  }

  .gk-category-back {
    margin-top: 9px;
    font-size: 11px;
  }

  .gk-index-nav {
    gap: 8px;
    margin-top: 15px;
    padding-top: 14px;
  }

  .gk-index-nav a {
    min-height: 38px;
    padding: 0 11px;
    font-size: 10.5px;
  }
}
