/* ══════════════════════════════════════════════════════════
   NKYbees — site.css
   All site-wide and page-level styles consolidated from
   _includes/base.njk and every page template.
   ══════════════════════════════════════════════════════════ */

/* ── Base layout ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #c8a84b;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-family: sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #222;
  background: #fafaf8;
}

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ── */
.layout > nav {
  background: #2c2c2c;
  color: #ddd;
  padding: 1.5rem 1.25rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  padding-bottom: 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid #3a3a3a;
}
.nav-logo {
  width: 38px;
  height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}
.nav-brand-text { display: flex; flex-direction: column; gap: 1px; }
.nav-brand-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1;
}
.nav-brand-name span { color: #c8a84b; }
.nav-brand-tagline {
  font-size: 0.62rem;
  color: #888;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.nav-search {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 5px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 1rem;
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: #ddd;
  font-size: 0.85rem;
  width: 100%;
}
.nav-search input::placeholder { color: #666; }
.nav-search-icon { color: #666; font-size: 0.85rem; margin-right: 0.4rem; }

.nav-group { margin-bottom: 0.75rem; }
.nav-group-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #777;
  margin-bottom: 0.3rem;
  padding-left: 0.1rem;
}
.layout > nav ul { list-style: none; }
.layout > nav ul li { margin-bottom: 0.15rem; }
.layout > nav a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.88rem;
  display: block;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout > nav a:hover { color: #fff; background: #3a3a3a; }
.layout > nav a.active { color: #fff; background: #444; }

/* ── Main content ── */
main {
  padding: 3rem 4rem;
  max-width: 860px;
}

h1 { font-size: 2rem; margin-bottom: 0.5rem; color: #111; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 0.4rem; }
p { margin-bottom: 1rem; }
a { color: #5a7fa8; }
a:hover { color: #2c5282; }

code {
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'Courier New', monospace;
}
pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 1rem 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
pre code { background: none; padding: 0; color: inherit; }
blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1rem;
  color: #555;
  margin: 1.25rem 0;
}
.meta { font-size: 0.8rem; color: #888; margin-bottom: 2rem; }
hr { border: none; border-top: 1px solid #ddd; margin: 2rem 0; }

/* ── Search page ── */
.search-wrap { max-width: 640px; }
#search-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  margin-bottom: 1.5rem;
}
#search-input:focus { border-color: #5a7fa8; }
.result-item { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.result-topic {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  background: #eee;
  padding: 0.1em 0.5em;
  border-radius: 3px;
  margin-bottom: 0.3rem;
}
.result-title { display: block; font-size: 1.1rem; font-weight: bold; margin-bottom: 0.3rem; }
.result-snippet { font-size: 0.9rem; color: #555; }
.no-results { color: #888; }

/* ── Shop ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.product-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.product-emoji {
  font-size: 3.5rem;
  text-align: center;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(135deg, #fef9e7, #fdf3c0);
  line-height: 1;
}
.product-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1rem; font-weight: bold; color: #222; margin-bottom: 0.25rem; }
.product-desc { font-size: 0.82rem; color: #777; margin-bottom: 0.75rem; flex: 1; line-height: 1.4; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: bold; color: #5a7fa8; }
.btn-add {
  background: #c8a84b;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.btn-add:hover { background: #a8883a; }
.btn-add:active { transform: scale(0.95); }

/* ── Floating cart button ── */
#cart-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #c8a84b;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  transition: background 0.15s, transform 0.15s;
}
#cart-btn:hover { background: #a8883a; transform: scale(1.08); }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #c0392b;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  font-family: sans-serif;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s;
}
.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes cartBtnBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  55%  { transform: scale(0.92); }
  75%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
#cart-btn.bounce { animation: cartBtnBounce 0.45s ease; }

/* ── Cart drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #eee;
  background: #fafaf8;
}
.cart-drawer-header h2 { font-size: 1.15rem; color: #222; }
#cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0.2rem;
}
#cart-close:hover { color: #222; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.cart-empty {
  text-align: center;
  color: #aaa;
  margin-top: 3rem;
  font-size: 0.95rem;
}
.cart-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0ece4;
  animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.cart-item-emoji { font-size: 1.8rem; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 0.9rem; font-weight: bold; color: #222; }
.cart-item-price { font-size: 0.82rem; color: #888; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.qty-btn:hover { background: #e0e0e0; }
.qty-val { font-size: 0.9rem; min-width: 18px; text-align: center; }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 2px solid #eee;
  background: #fafaf8;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 1rem;
}
.btn-checkout {
  width: 100%;
  padding: 0.75rem;
  background: #c8a84b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-checkout:hover { background: #a8883a; }

/* ── Fly-to-cart animation ── */
.fly-dot {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c8a84b;
  pointer-events: none;
  z-index: 9999;
  transition: none;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  background: #2c2c2c;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: sans-serif;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ── Mobile nav ── */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 800;
  background: #2c2c2c;
  padding: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.mobile-brand-name {
  font-size: 1.15rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.03em;
}
.mobile-brand-name span { color: #c8a84b; }
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ddd;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 810;
  opacity: 0;
  transition: opacity 0.25s;
}
.nav-overlay.open { opacity: 1; }

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #2c2c2c;
  z-index: 820;
  overflow-y: auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.nav-drawer.open { transform: translateX(0); }

@media (max-width: 700px) {
  .layout { grid-template-columns: 1fr; }
  nav { display: none; }
  .mobile-header { display: flex; }
  .nav-overlay { display: block; pointer-events: none; }
  .nav-overlay.open { pointer-events: all; }
  main { padding: 1.5rem; }
  .cart-drawer { width: 100vw; }
}

/* ── Kentucky Plants page ── */

.kp-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 2rem;
  max-width: 680px;
  line-height: 1.65;
}

/* ── A–Z letter bar ── */
.az-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1.75rem;
  position: sticky;
  top: 0;
  background: #fafaf8;
  padding: 0.6rem 0;
  z-index: 10;
  border-bottom: 1px solid #e8e4dc;
}
.az-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: sans-serif;
  font-weight: bold;
  text-decoration: none;
  background: #eee;
  color: #555;
  transition: background 0.15s, color 0.15s;
}
.az-bar a:hover { background: #c8a84b; color: #fff; }
.az-bar a.has-plants { background: #d9c27a; color: #3a2800; }
.az-bar a.active { background: #c8a84b; color: #fff; }
.az-bar a.no-plants { opacity: 0.3; pointer-events: none; }

/* ── Index section ── */
.plant-index {
  margin-bottom: 2.5rem;
  columns: 3;
  column-gap: 1.5rem;
}
@media (max-width: 640px) { .plant-index { columns: 2; } }
@media (max-width: 400px) { .plant-index { columns: 1; } }

.index-letter-group { break-inside: avoid; margin-bottom: 1rem; }
.index-letter {
  font-size: 0.7rem;
  font-weight: bold;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c8a84b;
  border-bottom: 1px solid #e8e4dc;
  padding-bottom: 2px;
  margin-bottom: 4px;
}
.index-letter-group ul { list-style: none; }
.index-letter-group li { margin-bottom: 2px; }
.index-letter-group a {
  font-size: 0.88rem;
  color: #5a7fa8;
  text-decoration: none;
}
.index-letter-group a:hover { text-decoration: underline; }

/* ── Plant detail section ── */
.plant-section {
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  background: #fff;
  overflow: hidden;
}
.plant-section summary {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  background: #fffdf5;
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
  user-select: none;
}
.plant-section summary::-webkit-details-marker { display: none; }
.plant-section[open] summary { border-bottom-color: #e8e4dc; background: #fdf8e8; }
.plant-section summary:hover { background: #fdf3c0; }

.summary-arrow {
  font-size: 0.75rem;
  color: #aaa;
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: auto;
}
.plant-section[open] .summary-arrow { transform: rotate(90deg); }

.summary-name { font-size: 1.1rem; font-weight: bold; color: #222; }
.summary-sci  { font-size: 0.85rem; font-style: italic; color: #888; }
.summary-bloom {
  font-size: 0.78rem;
  color: #fff;
  background: #c8a84b;
  border-radius: 20px;
  padding: 0.15em 0.65em;
  white-space: nowrap;
  font-family: sans-serif;
}

/* ── Plant detail body ── */
.plant-body { padding: 1.5rem 1.25rem; }

.plant-summary-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 1.25rem;
}

.bloom-label {
  font-family: sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.2rem;
}
.bloom-value {
  font-size: 1rem;
  font-weight: bold;
  color: #5a3e00;
  margin-bottom: 1.5rem;
}

/* ── Image grid ── */
.plant-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) { .plant-images { grid-template-columns: 1fr; } }

.plant-image-wrap { display: flex; flex-direction: column; gap: 0.4rem; }
.plant-image-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid #e8e4dc;
  display: block;
}
.img-caption {
  font-size: 0.75rem;
  color: #999;
  font-family: sans-serif;
  text-align: center;
}

/* ── Back to top ── */
.back-to-top {
  display: inline-block;
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #c8a84b;
  text-decoration: none;
  margin-top: 0.5rem;
}
.back-to-top:hover { color: #a8883a; }

/* ── Plant attributes ── */
.native-badge {
  display: inline-block;
  background: #4a7c59;
  color: #fff;
  font-size: 0.68rem;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2em 0.65em;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.plant-attrs {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.plant-attr {
  background: #f5f0e8;
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
  min-width: 70px;
}
.plant-attr-label {
  font-size: 0.63rem;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #aaa;
  display: block;
  margin-bottom: 1px;
}
.plant-attr-value {
  font-size: 0.8rem;
  font-family: sans-serif;
  color: #444;
  font-weight: bold;
}

/* ── Section divider ── */
.section-divider {
  font-family: sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin: 2rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e4dc;
}

/* ── Bloom Calendar page ── */

.cal-intro {
  font-size: 0.95rem;
  color: #555;
  max-width: 680px;
  margin-bottom: 2rem;
}

/* ── Season legend ── */
.season-legend {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-family: sans-serif;
  font-size: 0.8rem;
}
.legend-item { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot {
  width: 12px; height: 12px; border-radius: 50%;
  flex-shrink: 0;
}

/* ── Section headers ── */
.cal-section-title {
  font-family: sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #999;
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cal-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e8e4dc;
}

/* ── Month card grid ── */
.month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.month-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  overflow: hidden;
}

.month-card-header {
  padding: 0.5rem 0.75rem;
  font-family: sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  color: #fff;
}

.month-card-body { padding: 0.6rem 0.75rem; }

.month-plant-link {
  display: block;
  font-size: 0.8rem;
  color: #5a7fa8;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1px solid #f5f0e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.month-plant-link:last-child { border-bottom: none; }
.month-plant-link:hover { color: #2c5282; }

.month-empty {
  font-size: 0.78rem;
  color: #ccc;
  font-style: italic;
  padding: 0.25rem 0;
}

.plant-count {
  font-family: sans-serif;
  font-size: 0.7rem;
  color: #999;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid #f0ece4;
}

/* ── Gantt timeline ── */
.gantt-wrap {
  overflow-x: auto;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  background: #fff;
}

.gantt-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 0.82rem;
}

.gantt-table th {
  font-family: sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem 0.35rem;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #e8e4dc;
  white-space: nowrap;
  color: #555;
}

.gantt-name-col {
  text-align: left !important;
  padding-left: 0.9rem !important;
  min-width: 155px;
  font-weight: normal;
}

.gantt-table td {
  padding: 0.3rem 0.25rem;
  border-bottom: 1px solid #f5f0e8;
  text-align: center;
}

.gantt-table tr:last-child td { border-bottom: none; }

.gantt-table tr:hover td { background: #fdfbf5; }

.gantt-plant-name {
  text-align: left;
  padding-left: 0.9rem !important;
}

.gantt-plant-name a {
  color: #333;
  text-decoration: none;
  font-size: 0.82rem;
}
.gantt-plant-name a:hover { color: #5a7fa8; }

.gantt-cell-bloom {
  border-radius: 2px;
  height: 18px;
  display: block;
  margin: 0 2px;
}

/* Start / end / middle bloom segment styles applied via JS */
.bloom-start { border-radius: 9px 0 0 9px; margin-left: 6px; }
.bloom-end   { border-radius: 0 9px 9px 0; margin-right: 6px; }
.bloom-solo  { border-radius: 9px; margin: 0 4px; }
.bloom-mid   { border-radius: 0; margin: 0; }

.gantt-month-header { width: 7%; }

/* Season colors */
.season-spring { background: #6fa86f; }
.season-spring-light { background: #a8d4a8; }
.season-summer { background: #c8a84b; }
.season-summer-light { background: #e0ca8a; }
.season-fall   { background: #c07832; }
.season-fall-light { background: #d9a870; }

.month-header-spring { background: #6fa86f; }
.month-header-summer { background: #c8a84b; }
.month-header-fall   { background: #c07832; }
.month-header-winter { background: #7a9cb8; }

/* ── Apiary calendar task items ── */
.task-item { display: flex; align-items: baseline; gap: 0.35rem; font-size: 0.8rem; padding: 0.2rem 0; border-bottom: 1px solid #f5f0e8; }
.task-item:last-child { border-bottom: none; }
.task-icon { font-size: 0.75rem; flex-shrink: 0; }
.task-text { color: #333; line-height: 1.4; }
.month-card.current-month { outline: 2px solid #c8a84b; outline-offset: 2px; }

/* Category legend */
.cat-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.8rem; font-family: sans-serif; color: #555; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 0.3rem; vertical-align: middle; }

/* Stats bar */
.stats-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  font-family: sans-serif;
}
.stat-chip {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 90px;
}
.stat-chip-val {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1;
  color: #c8a84b;
}
.stat-chip-lbl {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

@media (max-width: 560px) {
  .month-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hive Journal page ── */

/* ── Toolbar ── */
.jnl-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.btn {
  font-family: inherit;
  font-size: 0.88rem;
  border: none;
  border-radius: 6px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #c8a84b; color: #fff; }
.btn-primary:hover { background: #a8883a; }
.btn-ghost {
  background: #f0ece4;
  color: #555;
}
.btn-ghost:hover { background: #e0d8cc; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-sm { font-size: 0.78rem; padding: 0.3rem 0.65rem; }

.jnl-toolbar select,
.jnl-toolbar input[type=search] {
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  background: #fff;
  color: #333;
  outline: none;
}
.jnl-toolbar select:focus,
.jnl-toolbar input[type=search]:focus { border-color: #c8a84b; }

.toolbar-spacer { flex: 1; }

/* ── Stats strip ── */
.jnl-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.jnl-stat {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 90px;
  font-family: sans-serif;
}
.jnl-stat-val { font-size: 1.5rem; font-weight: bold; color: #c8a84b; line-height: 1; }
.jnl-stat-lbl { font-size: 0.68rem; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ── Form panel ── */
.form-panel {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1);
}
.form-panel.open { max-height: 1200px; }

.form-panel-inner { padding: 1.5rem; }

.form-panel h2 {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: #333;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.3rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.75rem;
  font-family: sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.92rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  background: #fafaf8;
  color: #222;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #c8a84b; background: #fff; }
.form-group textarea { resize: vertical; min-height: 80px; }

.form-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

/* ── Entry cards ── */
.entries-wrap { display: flex; flex-direction: column; gap: 0.875rem; }

.entry-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-left: 4px solid #ccc;
  border-radius: 0 10px 10px 0;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.entry-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.08); }

.entry-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  user-select: none;
}

.entry-type-badge {
  font-family: sans-serif;
  font-size: 0.68rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2em 0.6em;
  border-radius: 20px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-hive {
  font-weight: bold;
  font-size: 0.95rem;
  color: #222;
}

.entry-date {
  font-family: sans-serif;
  font-size: 0.82rem;
  color: #888;
}

.entry-weather {
  font-family: sans-serif;
  font-size: 0.78rem;
  color: #aaa;
}

.entry-arrow {
  margin-left: auto;
  color: #bbb;
  font-size: 0.75rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.entry-card.expanded .entry-arrow { transform: rotate(90deg); }

.entry-summary {
  padding: 0 1rem 0.75rem;
  font-size: 0.85rem;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-body {
  display: none;
  padding: 0 1rem 1rem;
  border-top: 1px solid #f0ece4;
}
.entry-card.expanded .entry-body { display: block; }

.entry-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.entry-field {
  background: #fafaf8;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-family: sans-serif;
}
.entry-field-lbl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #aaa;
}
.entry-field-val {
  font-size: 0.82rem;
  color: #333;
  font-weight: bold;
  margin-top: 1px;
}

.entry-notes {
  font-size: 0.88rem;
  color: #333;
  line-height: 1.65;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}

.entry-actions-taken {
  font-size: 0.85rem;
  color: #5a7fa8;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.entry-footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0ece4;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #aaa;
  font-family: sans-serif;
}
.empty-state-icon { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.empty-state p { font-size: 0.9rem; }

/* Type colors */
.type-inspection { border-left-color: #c8a84b; }
.badge-inspection { background: #c8a84b; }
.type-harvest     { border-left-color: #e8961e; }
.badge-harvest    { background: #e8961e; }
.type-treatment   { border-left-color: #8b5cf6; }
.badge-treatment  { background: #8b5cf6; }
.type-feeding     { border-left-color: #6fa86f; }
.badge-feeding    { background: #6fa86f; }
.type-observation { border-left-color: #5a7fa8; }
.badge-observation { background: #5a7fa8; }
.type-swarm       { border-left-color: #e74c3c; }
.badge-swarm      { background: #e74c3c; }
.type-other       { border-left-color: #999; }
.badge-other      { background: #999; }

/* ── About page ── */

.about-section { margin-bottom: 2.5rem; }
.contact-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-card-icon { font-size: 1.75rem; flex-shrink: 0; line-height: 1; }
.contact-card-body {}
.contact-card-label {
  font-family: sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #888;
  margin-bottom: 0.2rem;
}
.contact-card-value { font-size: 1rem; color: #222; }
.contact-card-value a { color: #5a7fa8; }

.order-note {
  background: #fffdf5;
  border: 1px solid #e8e4dc;
  border-left: 4px solid #c8a84b;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.order-note strong { color: #3a2000; }

.contact-form label {
  display: block;
  font-family: sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #666;
  margin-bottom: 0.3rem;
  margin-top: 1rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: Georgia, serif;
  font-size: 0.95rem;
  color: #222;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-color: #c8a84b; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.btn-send {
  margin-top: 1.25rem;
  background: #c8a84b;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-send:hover { background: #a8883a; }
.form-note {
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.6rem;
  font-family: sans-serif;
}

/* ── Home page ── */

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #3a2000 0%, #5c3a0a 50%, #3a2000 100%);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='70'%3E%3Cpolygon points='30,2 58,17 58,53 30,68 2,53 2,17' fill='none' stroke='rgba(200,168,75,0.12)' stroke-width='1.5'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-logo {
  width: 90px;
  height: 104px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  position: relative;
}
.hero-text { position: relative; }
.hero-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.hero-title span { color: #c8a84b; }
.hero-sub {
  font-family: sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a8884b;
  margin-bottom: 0.9rem;
}
.hero-desc {
  font-size: 0.95rem;
  color: #c8b89a;
  line-height: 1.65;
  max-width: 420px;
  margin: 0;
}
@media (max-width: 560px) {
  .hero { flex-direction: column; gap: 1rem; padding: 1.75rem 1.25rem; }
  .hero-logo { width: 64px; height: 74px; }
  .hero-title { font-size: 1.8rem; }
}

/* ── Nav cards ── */
.home-section-label {
  font-family: sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #bbb;
  margin-bottom: 0.6rem;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.home-card {
  background: #fff;
  border: 1px solid #e8e4dc;
  border-radius: 10px;
  padding: 1.1rem 1rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: box-shadow 0.2s, transform 0.15s;
}
.home-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  color: inherit;
}
.home-card-icon { font-size: 1.8rem; line-height: 1; }
.home-card-title {
  font-size: 0.97rem;
  font-weight: bold;
  color: #222;
  margin-top: 0.2rem;
}
.home-card-desc {
  font-size: 0.8rem;
  color: #888;
  line-height: 1.45;
  font-family: sans-serif;
}

/* ── Research note ── */
.research-note {
  background: #fffdf5;
  border: 1px solid #e8e4dc;
  border-left: 4px solid #c8a84b;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
}
.research-note strong { color: #3a2000; }
.research-note ol { margin: 0.5rem 0 0 1.2rem; }
.research-note li { margin-bottom: 0.2rem; }

/* ── Shop page ── */

.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #fef9e7, #fdf3c0);
}
.product-img-fallback {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #fef9e7, #fdf3c0);
  line-height: 1;
}

/* ── Footer ── */

.site-footer {
  background: #2c2c2c;
  color: #888;
  font-family: sans-serif;
  font-size: 0.8rem;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-brand {
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.03em;
}
.footer-brand span { color: #c8a84b; }
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { color: #555; }

@media (max-width: 700px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── Print styles (Kentucky Plants reference sheet) ── */

@media print {
  /* Hide chrome */
  nav, .mobile-header, .nav-overlay, .nav-drawer,
  #cart-btn, .cart-overlay, .cart-drawer, .toast,
  .site-footer, .az-bar, .back-to-top, .section-divider,
  .plant-index, .kp-intro { display: none !important; }

  /* Reset layout to single column */
  .layout { display: block; }
  main { padding: 0.5rem; max-width: 100%; }

  body { background: #fff; color: #000; font-size: 10pt; }
  h1 { font-size: 16pt; margin-bottom: 0.25rem; }

  /* Expand all plant details */
  details.plant-section { open: true; }
  .plant-body { display: block !important; }
  details > summary { list-style: none; }
  details > summary::marker,
  details > summary::-webkit-details-marker { display: none; }
  .summary-arrow { display: none; }

  /* Plant card layout for print */
  .plant-section {
    border: 1px solid #ccc;
    border-radius: 0;
    margin-bottom: 0.75rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .plant-section summary {
    background: #f5f0e8 !important;
    border-bottom: 1px solid #ccc;
    padding: 0.4rem 0.75rem;
  }
  .summary-bloom {
    background: #888 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .native-badge {
    background: #4a7c59 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .plant-body { padding: 0.5rem 0.75rem; }
  .plant-summary-text { font-size: 9pt; }
  .plant-attrs { gap: 0.4rem; }
  .plant-attr { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  /* Images: smaller for print */
  .plant-images { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .plant-image-wrap img { height: 120px; }

  /* Hide URLs appended to links */
  a[href]::after { content: none !important; }
}
