/*
Theme Name: Życie Koktajl
Theme URI: https://zyciekoktajl.pl/
Author: Hubert Machała
Author URI: https://machalahubert.pl/
Description: Nowoczesny motyw bloga żywieniowego. Strona główna prowadzi menu, kategorie w panelu bocznym i siatkę ostatnich wpisów. Kolory są spójne z zyciekoktajl.pl.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 7.1.4
Requires PHP: 7.4
Text Domain: zyciekoktajl24-theme
Domain Path: /languages
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, food-and-drink, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --zk-green: #169919;
  --zk-green-dark: #0a5510;
  --zk-green-ink: #0c6812;
  --zk-lime: #a1c627;
  --zk-orange: #ec6b25;
  --zk-blue: #2991d6;
  --zk-ink: #1a1a1a;
  --zk-text: #242424;
  --zk-muted: #3a3a3a;
  --zk-line: #dbdbdb;
  --zk-paper: #f3f6f1;
  --zk-white: #ffffff;
  --zk-shadow: 0 12px 32px rgba(28, 48, 24, 0.08);
  --zk-radius: 18px;
  --zk-font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --zk-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--zk-font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--zk-text);
  background-color: var(--zk-paper);
  background-image: radial-gradient(rgba(22, 153, 25, 0.16) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--zk-blue);
}

a:hover {
  color: var(--zk-green-ink);
}

:focus-visible {
  outline: 3px solid var(--zk-lime);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--zk-green-ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  top: 0.6rem;
  color: #fff;
}

.site-main {
  flex: 1;
  width: min(var(--zk-max), calc(100% - 2rem));
  margin: 1.75rem auto 3rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--zk-green);
  box-shadow: 0 1px 0 rgba(22, 153, 25, 0.05);
}

.site-header__bar {
  width: min(var(--zk-max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  max-height: 64px;
  width: auto;
}

.brand__name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand__name a {
  color: var(--zk-green-ink);
  text-decoration: none;
}

.brand__tagline {
  margin: 0.2rem 0 0;
  color: var(--zk-muted);
  font-size: 0.92rem;
  line-height: 1.3;
}

.header-actions {
  display: none;
  margin-left: auto;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.menu-toggle,
.sidebar-toggle,
.sidebar-close {
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--zk-line);
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  color: var(--zk-ink);
  cursor: pointer;
}

.menu-toggle,
.sidebar-toggle {
  display: inline-flex;
  flex: 0 0 auto;
}

.menu-toggle__bars {
  width: 1rem;
  height: 2px;
  background: var(--zk-green);
  box-shadow: 0 5px 0 var(--zk-green), 0 -5px 0 var(--zk-green);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.primary-nav .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--zk-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
  color: var(--zk-green-ink);
  background: #e7f6e4;
}

.primary-nav .menu > li {
  position: relative;
}

.primary-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--zk-shadow);
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  display: block;
}

.primary-nav .sub-menu a {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 1px solid var(--zk-line);
  border-radius: 999px;
  padding: 0.25rem 0.25rem 0.25rem 0.9rem;
}

.search-form:focus-within {
  border-color: var(--zk-green);
  box-shadow: 0 0 0 3px rgba(22, 153, 25, 0.15);
}

.search-field {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--zk-ink);
  min-width: 0;
  width: 100%;
}

.search-field:focus {
  outline: none;
}

.search-field::placeholder {
  color: #9a9a9a;
}

.search-submit,
.comment-form .submit,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--zk-green-ink);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.search-submit:hover,
.comment-form .submit:hover,
.button:hover {
  background: var(--zk-green-dark);
  color: #fff;
}

.header-search {
  width: 240px;
  flex: 0 0 auto;
}

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.25rem;
  align-items: start;
}

.section-heading {
  margin: 0 0 1.35rem;
}

.section-kicker {
  margin: 0 0 0.3rem;
  color: var(--zk-green-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h1,
.entry-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--zk-ink);
  font-weight: 700;
}

.section-heading h1::after {
  content: "";
  display: block;
  width: 4.25rem;
  height: 0.28rem;
  margin-top: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--zk-green), var(--zk-lime));
}

.section-desc {
  margin: 0.8rem 0 0;
  max-width: 42rem;
  color: var(--zk-muted);
  font-size: 1.05rem;
}

.section-desc p {
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--zk-white);
  border-radius: var(--zk-radius);
  overflow: hidden;
  border: 1px solid rgba(22, 153, 25, 0.08);
  border-top: 4px solid var(--zk-green);
  box-shadow: var(--zk-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card.tone-lime {
  border-top-color: var(--zk-lime);
}

.post-card.tone-orange {
  border-top-color: var(--zk-orange);
}

.post-card.tone-blue {
  border-top-color: var(--zk-blue);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(22, 40, 20, 0.12);
}

.post-card.is-lead {
  grid-column: 1 / -1;
  flex-direction: row;
}

.post-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7f3e4;
}

.post-card.is-lead .post-card__media {
  flex: 1.15 1 54%;
  aspect-ratio: auto;
  min-height: 300px;
}

.post-card__image,
.post-card__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card__image {
  transition: transform 0.45s ease;
}

.post-card:hover .post-card__image {
  transform: scale(1.04);
}

.post-card__placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(145deg, var(--zk-green), var(--zk-lime));
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1rem 1.1rem 1.15rem;
}

.post-card.is-lead .post-card__body {
  flex: 1 1 46%;
  justify-content: center;
  padding: 1.5rem 1.6rem;
}

.post-card.is-lead .post-card__title {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat-chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.cat-chip.tone-green {
  background: var(--zk-green-ink);
  color: #fff;
}

.cat-chip.tone-lime {
  background: var(--zk-lime);
  color: #1a2404;
}

.cat-chip.tone-orange {
  background: var(--zk-orange);
  color: #24160c;
}

.cat-chip.tone-blue {
  background: #1d6fa8;
  color: #fff;
}

.cat-chip:hover {
  filter: brightness(0.94);
}

.cat-chip.tone-green:hover,
.cat-chip.tone-blue:hover {
  color: #fff;
}

.cat-chip.tone-lime:hover {
  color: #1a2404;
}

.cat-chip.tone-orange:hover {
  color: #24160c;
}

.sticky-flag {
  align-self: flex-start;
  background: var(--zk-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.post-card__title {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.post-card__title a {
  color: var(--zk-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.post-card__title a:hover {
  color: var(--zk-green-ink);
}

.post-card__excerpt {
  margin: 0;
  color: #2a2a2a;
  font-size: 1.02rem;
  line-height: 1.55;
}

.post-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.post-card__footer time,
.post-card__date,
.entry-meta {
  color: #3a3a3a;
  font-size: 0.95rem;
  font-weight: 600;
}

.post-card__more {
  color: var(--zk-green-ink);
  font-weight: 700;
  text-decoration: none;
}

.post-card__more:hover {
  color: var(--zk-green-dark);
}

.site-sidebar,
.site-sidebar__scroll,
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-widgets .widget {
  margin: 0;
}

.sidebar-block,
.widget,
.entry,
.comments-area,
.front-intro,
.empty-state {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--zk-shadow);
  border: 1px solid rgba(22, 153, 25, 0.08);
}

.sidebar-block,
.widget {
  padding: 1.1rem 1.15rem 0.7rem;
}

.widget-title {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--zk-green-ink);
  letter-spacing: -0.02em;
}

.category-menu,
.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-menu > li {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid #e7eee7;
}

.category-menu > li:last-child {
  border-bottom: 0;
}

.category-menu a {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.62rem 0.1rem;
  color: #242424;
  text-decoration: none;
  font-weight: 600;
}

.category-menu > li > a::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--zk-green);
  flex: 0 0 auto;
}

.category-menu > li:nth-child(4n + 2) > a::before {
  background: var(--zk-lime);
}

.category-menu > li:nth-child(4n + 3) > a::before {
  background: var(--zk-orange);
}

.category-menu > li:nth-child(4n + 4) > a::before {
  background: var(--zk-blue);
}

.category-menu a:hover,
.category-menu .current-menu-item > a,
.category-menu .current-menu-ancestor > a,
.category-menu .current-cat > a,
.category-menu .current-cat-parent > a {
  color: var(--zk-green-ink);
}

.cat-label {
  flex: 1;
  min-width: 0;
}

.cat-count {
  flex: none;
  min-width: 1.6rem;
  margin-left: auto;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #e7f6e6;
  color: var(--zk-green-dark);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.category-menu .sub-menu,
.category-menu .children {
  flex: 1 0 calc(100% - 1.35rem);
  box-sizing: border-box;
  width: calc(100% - 1.35rem);
  max-width: calc(100% - 1.35rem);
  list-style: none;
  margin: 0.1rem 0 0.35rem 1.35rem;
  padding: 0.1rem 0 0.25rem 1rem;
  border-left: 2px solid #cfe3cf;
}

.category-menu .sub-menu .sub-menu,
.category-menu .children .children,
.category-menu .sub-menu .children,
.category-menu .children .sub-menu {
  flex-basis: calc(100% - 0.85rem);
  width: calc(100% - 0.85rem);
  max-width: calc(100% - 0.85rem);
  margin-left: 0.85rem;
}

.category-menu .sub-menu a,
.category-menu .children a {
  font-weight: 600;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.widget li {
  margin: 0;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e7eee7;
}

.widget li:last-child {
  border-bottom: 0;
}

.widget a {
  color: var(--zk-text);
  text-decoration: none;
}

.widget a:hover {
  color: var(--zk-green-ink);
}

.sidebar-widgets .sub-menu,
.sidebar-widgets .children {
  box-sizing: border-box;
  width: calc(100% - 1.35rem);
  max-width: calc(100% - 1.35rem);
  list-style: none;
  margin: 0.15rem 0 0.35rem 1.35rem;
  padding: 0.1rem 0 0.25rem 1rem;
  border-left: 2px solid #cfe3cf;
}

.sidebar-widgets .sub-menu .sub-menu,
.sidebar-widgets .children .children,
.sidebar-widgets .sub-menu .children,
.sidebar-widgets .children .sub-menu {
  width: calc(100% - 0.85rem);
  max-width: calc(100% - 0.85rem);
  margin-left: 0.85rem;
}

.widget select,
.widget input[type="text"],
.widget input[type="search"] {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--zk-line);
  font: inherit;
  font-size: 16px;
  color: #111;
  background: #fff;
}

.widget .search-form input[type="search"],
.widget .search-form .search-field {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0.45rem 0.15rem;
  appearance: none;
}

.entry {
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: 20px;
}

.entry-header {
  margin-bottom: 1rem;
}

.entry-title {
  margin: 0.55rem 0 0.35rem;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.9rem;
  margin: 0.45rem 0 0;
}

.entry-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.entry-share__link,
.entry-share__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid #cfe3cf;
  border-radius: 999px;
  background: #fff;
  color: var(--zk-green-ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
}

.entry-share__icon {
  display: block;
  fill: currentColor;
}

.entry-share__link:hover,
.entry-share__copy:hover,
.entry-share__copy.is-copied {
  background: var(--zk-green-ink);
  border-color: var(--zk-green-ink);
  color: #fff;
}

.entry-media {
  margin: 0 0 1.25rem;
}

.entry-media img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 520px;
}

.entry-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #242424;
  overflow-wrap: anywhere;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table {
  margin: 0 0 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--zk-ink);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.5rem;
}

.entry-content a {
  color: var(--zk-blue);
}

.entry-content a:hover {
  color: var(--zk-green-ink);
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
}

.entry-content ul li::marker {
  color: var(--zk-green);
}

.entry-content blockquote {
  margin-left: 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid var(--zk-lime);
  color: var(--zk-muted);
}

.entry-content img {
  border-radius: 12px;
}

.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.entry-content iframe,
.entry-content embed,
.entry-content video {
  max-width: 100%;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  border-bottom: 1px solid var(--zk-line);
  padding: 0.5rem 0.4rem;
  text-align: left;
}

.entry-content th {
  color: var(--zk-green-dark);
}

.entry-content .wp-block-button__link {
  background: var(--zk-green-ink);
  color: #fff;
  border-radius: 999px;
}

.entry-content .wp-block-button__link:hover {
  background: var(--zk-green-dark);
  color: #fff;
}

.page-links {
  margin-top: 1rem;
  font-weight: 700;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--zk-line);
}

.entry-tags span {
  color: var(--zk-muted);
  font-weight: 700;
}

.entry-tags a {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--zk-blue);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
}

.entry-tags a:hover {
  background: #1d7ab8;
  color: #fff;
}

.edit-link a {
  color: var(--zk-muted);
  font-size: 0.9rem;
}

.front-intro,
.empty-state {
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.35rem;
}

.empty-state .search-form {
  width: 100%;
  max-width: 32rem;
  margin: 1rem 0;
}

.pagination {
  margin-top: 1.75rem;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--zk-line);
  color: var(--zk-text);
  text-decoration: none;
  font-weight: 700;
}

.pagination a.page-numbers:hover,
.pagination .page-numbers.current {
  background: var(--zk-green-ink);
  border-color: var(--zk-green-ink);
  color: #fff;
}

.post-navigation {
  margin-top: 1.25rem;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  color: var(--zk-ink);
  border: 1px solid #e8eee8;
}

.post-navigation .nav-next a {
  text-align: right;
  align-items: flex-end;
}

.nav-label {
  color: var(--zk-green-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-title {
  font-weight: 700;
}

.comments-area {
  margin-top: 1.25rem;
  padding: 1.3rem 1.4rem 1.5rem;
  border-radius: 20px;
}

.section-desc strong {
  color: var(--zk-ink);
}

.comments-title {
  margin: 0 0 1rem;
  color: var(--zk-ink);
  font-size: 1.4rem;
}

.comment-navigation {
  margin: 0 0 1rem;
}

.comment-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list .children {
  list-style: none;
  margin: 0 0 0 1.5rem;
  padding: 0;
}

.comment-body {
  background: var(--zk-paper);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.comment-body::after {
  content: "";
  display: block;
  clear: both;
}

.comment-author img {
  float: left;
  width: 48px;
  height: 48px;
  margin: 0 0.75rem 0.25rem 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.comment-author .fn,
.comment-author .fn a {
  font-weight: 700;
  color: var(--zk-ink);
  text-decoration: none;
}

.comment-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.comment-metadata a {
  color: #3a3a3a;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.comment-reply-link,
.comment-metadata .comment-edit-link,
#cancel-comment-reply-link,
.comment-navigation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.22rem 0.72rem;
  border: 1px solid #cfe3cf;
  border-radius: 999px;
  background: #fff;
  color: var(--zk-green-ink);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.comment-reply-link:hover,
.comment-metadata .comment-edit-link:hover,
#cancel-comment-reply-link:hover,
.comment-navigation a:hover {
  background: var(--zk-green-ink);
  border-color: var(--zk-green-ink);
  color: #fff;
}

.reply {
  margin-top: 0.55rem;
}

.logged-in-as a,
.comment-form a {
  color: var(--zk-green-ink);
  font-weight: 700;
  text-decoration: none;
}

.logged-in-as a:hover,
.comment-form a:hover {
  text-decoration: underline;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: #111;
  background: #fff;
}

.comment-form p {
  margin: 0 0 0.9rem;
}

.site-footer {
  background: #fff;
  border-top: 4px solid var(--zk-green);
  color: var(--zk-muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  width: min(var(--zk-max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--zk-green-ink);
  text-decoration: none;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--zk-green-dark);
}

.admin-bar .site-header {
  top: 32px;
}

@media (min-width: 961px) {
  .site-sidebar {
    align-self: start;
  }

  .site-sidebar.is-sticky {
    position: sticky;
    top: 6.25rem;
  }

  .admin-bar .site-sidebar.is-sticky {
    top: calc(6.25rem + 32px);
  }
}

.sidebar-backdrop {
  display: none;
}

.sidebar-close {
  display: none;
}

@media (max-width: 960px) {
  .header-actions {
    display: flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    border: 0;
    padding: 0;
    background: rgba(18, 32, 16, 0.46);
    cursor: pointer;
  }

  body.is-sidebar-open .sidebar-backdrop {
    display: block;
  }

  .sidebar-close {
    display: inline-flex;
    position: static;
    flex: none;
    align-self: flex-end;
    margin: 0;
    background: #fff;
  }

  .site-sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    right: 0;
    width: min(22rem, 88vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 1rem 1rem 0;
    background: #f7faf6;
    box-shadow: -16px 0 40px rgba(20, 40, 16, 0.18);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overflow: hidden;
  }

  .site-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding-bottom: 1.5rem;
  }

  body.is-sidebar-open .site-sidebar {
    transform: translateX(0);
  }

  body.is-sidebar-open {
    overflow: hidden;
  }

  .admin-bar .site-sidebar {
    top: 32px;
    height: calc(100dvh - 32px);
  }

  .site-header {
    overflow-anchor: none;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 5;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin: 0;
    padding: 0.85rem 1rem 1rem;
    background: #fff;
    border-bottom: 3px solid var(--zk-green);
    box-shadow: 0 16px 32px rgba(20, 40, 16, 0.1);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav .menu,
  .primary-nav .sub-menu {
    display: flex;
    flex-direction: column;
    position: static;
    min-width: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
  }

  .header-search {
    width: 100%;
  }

  .site-header__bar {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .site-layout,
  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-card.is-lead,
  .post-navigation .nav-next a {
    flex-direction: column;
    text-align: left;
    align-items: stretch;
  }

  .post-card.is-lead .post-card__media {
    min-height: 220px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .site-sidebar {
    top: 46px;
    height: calc(100dvh - 46px);
  }
}

@media (max-width: 670px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .comment-list .children {
    margin-left: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .post-card:hover,
  .post-card:hover .post-card__image {
    transform: none;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header {
    position: static;
  }

  .header-search,
  .header-actions,
  .sidebar-backdrop,
  .site-sidebar,
  .pagination,
  .comment-respond,
  .post-navigation {
    display: none !important;
  }

  .site-layout {
    display: block;
  }
}
