/* ==========================================================================
   Vanastree Seed Saving Collective — Site Stylesheet
   Recreated theme: terracotta background, cream content card,
   chevron side pattern, tab navigation, pink sidebar widgets.
   ========================================================================== */

:root {
  --terracotta: #681f07;
  --terracotta-deep: #681f07;
  /* --pattern-line: rgba(255, 255, 255, 0.16); */
  --white: #ffffff;
  --cream: #fdfbf8;
  --sidebar-bg: #fbe7e0;
  --sidebar-border: #f0d2c4;
  --text-main: #2d2a28;
  --text-muted: #5a5650;
  --accent: #c1391f;
  --accent-dark: #8a2a13;
  --maroon-heading: #6e2412;
  --link: #b8441f;
  --nav-inactive-text: #2d2a28;
  --max-width: 1180px;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: "Trebuchet MS", "Lucida Grande", "Open Sans", sans-serif;
  background-color: var(--terracotta);
  color: var(--text-main);
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video,
iframe,
svg,
canvas {
  max-width: 100%;
  height: auto;
}



/* ---------------------------------------------------------------------- */
/* Decorative chevron side pattern (left/right of page, like the original) */
/* ---------------------------------------------------------------------- */
body::before,
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: 12vw;
  min-width: 100px;
  max-width: 150px;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='240' viewBox='0 0 120 240'%3E%3Cg fill='none' stroke='rgba(253, 251, 248, 0.18)' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40,0 L18,22 L39,41 L21,58 L41,82 L19,99 L40,120 L22,139 L40,162 L18,179 L42,201 L21,218 L40,240'/%3E%3Cpath d='M70,0 L60,12 L81,31 L58,49 L80,72 L62,89 L79,112 L59,131 L82,152 L61,169 L78,191 L58,212 L68,228 L70,240' stroke-width='5'/%3E%3Cpath d='M100,0 L82,18 L102,42 L81,59 L99,81 L78,98 L100,120 L79,139 L101,158 L82,181 L99,202 L78,219 L100,240'/%3E%3Cg fill='rgba(253, 251, 248, 0.18)' stroke='none'%3E%3Ccircle cx='10' cy='22' r='2.5'/%3E%3Ccircle cx='12' cy='58' r='3'/%3E%3Ccircle cx='9' cy='99' r='2'/%3E%3Ccircle cx='11' cy='139' r='3'/%3E%3Ccircle cx='10' cy='179' r='2.5'/%3E%3Ccircle cx='12' cy='218' r='3'/%3E%3Ccircle cx='110' cy='18' r='3'/%3E%3Ccircle cx='112' cy='59' r='2.5'/%3E%3Ccircle cx='109' cy='98' r='3'/%3E%3Ccircle cx='111' cy='139' r='2'/%3E%3Ccircle cx='113' cy='181' r='3'/%3E%3Ccircle cx='110' cy='219' r='2.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 100% auto;
}

body::before {
  left: 0;
  background-position: left top;
}

body::after {
  right: 0;
  background-position: right top;
  transform: scaleX(-1);
}

@media (max-width: 767px) {

  body::before,
  body::after {
    display: none;
  }
}

/* ---------------------------------------------------------------------- */
/* Page wrapper                                                           */
/* ---------------------------------------------------------------------- */
.page-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 20px 60px;
}

@media (max-width: 768px) {
  .page-wrap {
    padding: 0 0 40px;
  }

  .hero-banner,
  .content-card {
    border-radius: 0;
  }
}

#vanastree-about-section {
  overflow: hidden;
  /* clearfix so the block wraps its floated child properly */
}

.vanastree-float-img {
  float: right;
  width: 280px;
  max-width: 40%;
  height: auto;
  margin: 4px 0 16px 24px;
  border-radius: 4px;
}

.vanastree-intro-text {
  text-align: left;
  margin-bottom: 16px;
}

.vanastree-seed-text {
  clear: both;
  text-align: left;
}

/* Mobile: stack image above text instead of squeezing narrow */
@media (max-width: 600px) {
  .vanastree-float-img {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Hero banner                                                            */
/* ---------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(140px, 30vw, 290px);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(120deg, #170902 0%, #8a5a35 35%, #c9c7c3 60%, #3a2a1a 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-banner img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-banner .placeholder-note {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  padding: 20px;
  background: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.08) 0, rgba(0, 0, 0, 0.08) 10px,
      transparent 10px, transparent 20px);
}

.hero-banner .logo-overlay {
  position: absolute;
  bottom: 18px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-banner .logo-overlay .logo-image {
  max-width: 280px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

@media (max-width: 767px) {
  .hero-banner .logo-overlay {
    bottom: 3vw;
    left: 4vw;
  }
  .hero-banner .logo-overlay .logo-image {
    width: 35vw;
    max-width: 150px;
  }
}

@media (max-width: 600px) {
  /* Height and font sizes are now handled by clamp(), keeping media query for any potential future overrides */
}

/* ---------------------------------------------------------------------- */
/* Navigation tabs                                                       */
/* ---------------------------------------------------------------------- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  position: relative;
}

/* Toggle removed completely */

.site-nav ul.nav-list {
  display: flex;
  list-style: none;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav ul.nav-list li {
  flex: 1 1 auto;
  text-align: center;
}

.site-nav ul.nav-list li a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--nav-inactive-text);
  border-right: 1px solid var(--sidebar-border);
  border-bottom: 1px solid transparent;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.site-nav ul.nav-list li:last-child a {
  border-right: none;
}

.site-nav ul.nav-list li a:hover {
  background: var(--sidebar-bg);
  color: var(--accent-dark);
}

.site-nav ul.nav-list li a.active {
  background: var(--accent);
  color: var(--white);
}

@media (max-width: 600px) {
  .site-nav ul.nav-list li a {
    padding: 12px 10px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--sidebar-border);
    border-radius: 0;
  }
}

/* ---------------------------------------------------------------------- */
/* Main content card                                                      */
/* ---------------------------------------------------------------------- */
.content-card {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
}

.main-content {
  padding: 28px 34px 40px;
  background: var(--cream);
  border-right: 1px solid var(--sidebar-border);
}

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

  .main-content {
    border-right: none;
  }
}

/* Typography ------------------------------------------------------------ */
.main-content h1.page-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--maroon-heading);
  margin-bottom: 14px;
}

.main-content h2.section-heading {
  color: var(--maroon-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 700;
  margin: 22px 0 8px;
}

.main-content p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  font-size: 0.97rem;
}

.main-content p.intro-italic {
  font-style: italic;
  color: var(--text-muted);
}

.main-content ul.bullet-list {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.main-content ul.bullet-list li {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.6;
}

.main-content ul.bullet-list li::before {
  content: "• ";
  color: var(--text-muted);
}

.callout-box {
  background: #fff7f1;
  border-left: 4px solid var(--accent);
  padding: 14px 16px;
  margin: 16px 0 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.6;
}

.callout-box a {
  color: var(--maroon-heading);
  text-decoration: underline;
}

.main-content a {
  color: var(--link);
  text-decoration: underline;
}

.main-content a:hover {
  color: var(--accent-dark);
}

/* Inline content image --------------------------------------------------- */
.content-photo {
  width: 100%;
  max-width: 360px;
  height: 220px;
  float: right;
  margin: 6px 0 16px 22px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #4d6b3a, #8a9a4a 60%, #c9b96a);
  position: relative;
}

.content-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-photo .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  padding: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.18);
}

@media (max-width: 600px) {
  .content-photo {
    float: none;
    width: 100%;
    margin: 16px 0;
    height: 200px;
  }

  .content-photo.img-left {
    float: none;
    margin: 16px 0;
  }

  .content-photo.map-img {
    max-width: 100%;
  }
}

.content-photo.img-left {
  float: left;
  margin: 6px 24px 16px 0;
}

.content-photo.map-img {
  max-width: 300px;
}

.content-photo.map-img img {
  object-fit: contain;
}

.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* Gallery grid (Media Gallery page) -------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 20px;
}

.gallery-item {
  height: 140px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #7a5a3a, #b08a55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  text-align: center;
  padding: 8px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18);
}

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

/* Seed list table (Seeds page) ------------------------------------------- */
.seed-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 22px;
  font-size: 0.92rem;
}

@media (max-width: 576px) {
  .seed-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

.seed-table th,
.seed-table td {
  border: 1px solid var(--sidebar-border);
  padding: 9px 12px;
  text-align: left;
  color: var(--text-muted);
}

.seed-table th {
  background: var(--sidebar-bg);
  color: var(--maroon-heading);
  font-weight: 700;
}

.seed-table tr:nth-child(even) {
  background: #fdf6f1;
}

/* ---------------------------------------------------------------------- */
/* Sidebar                                                                */
/* ---------------------------------------------------------------------- */
.sidebar {
  background: var(--cream);
  padding: 24px 22px 30px;
}

.widget {
  margin-bottom: 26px;
}

.widget h3 {
  color: var(--maroon-heading);
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.widget .widget-box {
  background: var(--sidebar-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.widget .widget-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.widget .widget-box strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.widget .widget-box a {
  color: var(--link);
  text-decoration: underline;
  font-size: 0.9rem;
}

.widget ul.featured-list {
  list-style: none;
}

.widget ul.featured-list li {
  margin-bottom: 7px;
}

.widget ul.featured-list li a {
  color: var(--link);
  text-decoration: none;
  font-size: 0.9rem;
}

.widget ul.featured-list li a::before {
  content: "➤ ";
  font-size: 0.7rem;
  color: var(--accent);
}

.widget ul.featured-list li a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                 */
/* ---------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  padding: 22px 10px 0;
}

.site-footer a {
  color: #ffe6d9;
  text-decoration: underline;
}

/* Accessibility: visible focus ------------------------------------------ */
a:focus,
button:focus {
  outline: 2px solid #ffe6d9;
  outline-offset: 2px;
}

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

  * {
    transition: none !important;
  }
}


.vt-catalogue {
  --vt-terracotta: #b8441f;
  /* Matches site accent */
  --vt-terracotta-dark: #8b2e0a;
  --vt-text: #2d2a28;
  --vt-text-light: #666;
  --vt-border: #e0d4cc;
  font-family: inherit;
  color: var(--vt-text);
  margin: 2.5rem 0;
}

.vt-catalogue__heading {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vt-terracotta-dark);
  margin: 0 0 0.35rem;
}

.vt-catalogue__intro {
  font-size: 0.98rem;
  color: var(--vt-text-light);
  margin: 0 0 1.5rem;
  max-width: 640px;
  line-height: 1.55;
}

.vt-catalogue__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 cards by default for mobile and tablet */
  gap: 1.25rem;
}

@media (min-width: 1200px) {
  .vt-catalogue__grid {
    grid-template-columns: repeat(3, 1fr);
    /* Exactly 3 cards for desktop */
  }
}

.vt-card {
  background: #ffffff;
  border: 1px solid var(--vt-border);
  border-radius: 8px;
  /* 8px border radius requested */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  /* Soft shadow */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
  /* Equal height */
}

.vt-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  /* Soft shadow increase */
  transform: translateY(-6px);
}

.vt-card__image-wrap {
  position: relative;
  width: 100%;
  padding-top: 75%;
  /* Forces consistent aspect ratio, hence equal height across cards */
  background: #ffffff;
  border-bottom: 1px solid var(--vt-border);
  overflow: hidden;
}

.vt-card__image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Never crop, center image */
  display: block;
  padding: 8px;
}

.vt-card__image-wrap .vt-card__fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--vt-border);
  background: #fafafa;
}

.vt-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vt-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--maroon-heading);
  margin: 0 0 0.25rem;
  line-height: 1.3;
}

.vt-card__sci {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--vt-text-light);
  margin: 0 0 0.75rem;
}

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

.vt-card__price {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--vt-terracotta);
  /* Accent color */
  margin: 0;
}

.vt-card__buy {
  display: inline-block;
  background: var(--vt-terracotta);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
}

.vt-card__buy:hover,
.vt-card__buy:focus {
  background: var(--vt-terracotta-dark);
  color: #fff;
}

.vt-card__buy:active {
  transform: scale(0.97);
}

.vt-card__buy:focus-visible {
  outline: 2px solid var(--vt-terracotta-dark);
  outline-offset: 2px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--vt-text-light);
  font-size: 1.1rem;
  padding: 3rem 1rem;
  background: #ffffff;
  border-radius: 8px;
  border: 1px dashed var(--vt-border);
}

/* Ensure 2-column layout strictly across smaller devices down to 320px */
@media (max-width: 600px) {
  .vt-catalogue__grid {
    gap: 0.75rem;
  }

  .vt-card__body {
    padding: 0.85rem;
  }

  .vt-card__name {
    font-size: 0.95rem;
  }

  .vt-card__sci {
    font-size: 0.8rem;
  }

  .vt-card__price {
    font-size: 0.95rem;
  }

  .vt-card__buy {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
}


.vt-pub {
  --vt-terracotta: #c1440e;
  --vt-terracotta-dark: #8b2e0a;
  --vt-text: #2b2b2b;
  --vt-text-light: #4a4a4a;
  font-family: inherit;
  color: var(--vt-text);
}

.vt-pub__item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1.5rem 0;
  /* Reduced from 2.25rem to eliminate excessive spacing */
}

.vt-pub__item+.vt-pub__item {
  border-top: 1px solid #e8e0d8;
}

.vt-pub__image {
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.vt-pub__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0;
  /* Guarantees text aligns perfectly with the top edge of the image */
}

.vt-pub__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: maroon;
  margin: 0;
  line-height: 1.35;
}

.vt-pub__title .vt-pub__title-en {
  font-weight: 700;
  color: maroon;
}

.vt-pub__subtitle {
  font-size: 1rem;
  color: var(--vt-text);
  margin: 0 0 0.4rem;
}

.vt-pub__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--vt-text-light);
  margin: 0 0 0.5rem;
  max-width: 60ch;
}

.vt-pub__link {
  color: var(--vt-terracotta-dark);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.vt-pub__link:hover,
.vt-pub__link:focus {
  text-decoration: underline;
  color: var(--vt-terracotta);
}

.vt-pub__link:focus-visible {
  outline: 2px solid var(--vt-terracotta-dark);
  outline-offset: 3px;
}

/* ---- Tablet: narrow the image column a touch ---- */
@media (max-width: 820px) {
  .vt-pub__item {
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
  }
}

/* ---- Mobile: stack image above text, full width ---- */
@media (max-width: 560px) {
  .vt-pub__item {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  .vt-pub__image {
    max-width: 260px;
  }

  .vt-pub__title {
    font-size: 1.15rem;
  }

  .vt-pub__desc {
    font-size: 0.95rem;
  }
}