/* Responsive catalogue layout inspired by the archived reference pages. */
* { box-sizing: border-box; }
html { font-size: 14px; }
body {
  margin: 0;
  background: #dcffdf;
  color: #800080;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}
button, input, select, textarea { font: inherit; }
a, a:visited { color: #803080; text-decoration: none; }
a:hover { color: #5e1b5e; text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { color: #800080; font-family: Arial, Helvetica, sans-serif; }

/* Header and horizontal navigation */
#header { background: #a5bfa7; }
#header > .container, #menu > .container, #content-wrapper > .container,
.site-footer {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}
.header_inner { padding: 12px 15px 8px; }
.leftlogo { display: flex; align-items: flex-end; }
.leftlogo > div { width: 33.333%; padding: 0 15px; }
#header #logo { flex: 0 0 33.333%; width: 33.333%; text-align: left; }
#header .leftbox { flex: 0 0 40%; width: 40%; margin-left: auto; }
#header .off-logo {
  display: block;
  color: #800080;
  font: bold clamp(20px, 2.4vw, 28px)/0 Arial, Helvetica, sans-serif;
  white-space: nowrap;
}
#header .off-logo img { display: block; width: 90%; height: auto; }
#header .leftbox { display: flex; justify-content: flex-end; }
#header .search { display: flex; width: 100%; max-width: 380px; }
#header .search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 12px 0 0 12px;
  background: #b3e6b7;
  font: inherit;
}
#header .search button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background:#dcffdf;
  color: #803080;
  cursor: pointer;
}
#menu {
  border-top: 4px solid #008000;
  background: #b3e6b7;
}
#menu .navbar {
  min-height: 50px;
  margin: 0;
  border: 0;
  background: transparent;
}
#menu .navbar-collapse { padding: 0 5px; }
#menu .nav { display: flex; margin: 0; padding: 0; list-style: none; }
#menu .nav > li { position: relative; }
#menu .nav li a {
  display: block;
  padding: 15px 10px;
  color: #800080;
  font: normal 16px/20px Arial, Helvetica, sans-serif;
}
#menu .nav > li > a {
  display: flex;
  align-items: center;
  height: 50px;
}
#menu .nav li a:hover { color: #cd01fe; text-decoration: none; }
#menu .nav > li > .nav-home::before {
  content: "⌂";
  margin-right: 5px;
  font: 18px/1 Arial, Helvetica, sans-serif;
}
#menu .nav > li > details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 15px 10px;
  color: #800080;
  font: normal 16px/20px Arial, Helvetica, sans-serif;
  cursor: pointer;
  list-style: none;
}
#menu .nav > li > details > summary::-webkit-details-marker { display: none; }
#menu .nav > li > details > summary::after {
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  border-bottom: 0;
  content: "";
}
#menu .nav > li > details > summary:hover,
#menu .nav > li > details[open] > summary { color: #cd01fe; }
#menu .nav .dropdown-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  display: none;
  min-width: 220px;
  max-height: min(85vh, 650px);
  overflow: auto;
  margin: 0;
  padding: 4px 0;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 4px 10px rgb(0 0 0 / 15%);
  list-style: none;
}
#menu .nav .nav-dropdown--right .dropdown-menu { right: 0; left: auto; }
#menu .nav .nav-dropdown details[open] .dropdown-menu,
#menu .nav .nav-dropdown details:not([open]):hover .dropdown-menu,
#menu .nav .nav-dropdown details:not([open]):focus-within .dropdown-menu { display: block; }
#menu .nav .dropdown-menu a {
  padding: 4px 8px;
  color: #5e005e;
  font-size: 15px;
  font-weight: normal;
  white-space: nowrap;
}
#menu .nav .dropdown-menu a:hover { background: #af01d9; color: #fff; }

/* Shared centered canvas and left category navigation */
#content-wrapper .container-inner {
  border: 1px solid #ddd;
  background: #dcffdf;
}
#content-wrapper .container-inner > .row { display: flex; align-items: stretch; }
#column-left {
  flex: 0 0 25%;
  width: 25%;
  padding: 15px;
  border-right: 1px solid #ddd;
}
#content {
  flex: 0 0 75%;
  width: 75%;
  min-width: 0;
  padding: 10px 15px 20px 20px;
}
#content .mainborder { position: relative; }
.contentset { text-align: center; }
.contentset h4 {
  margin: 0 0 8px;
  padding: 7px 0;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 2px;
}
.box-category ul { margin: 0; padding: 0; list-style: none; }
.box-category li { border-top: 1px solid #eee; }
.box-category li:first-child { border-top: 0; }
.box-category li a { display: block; padding: 5px 8px; color: #800080; }
.box-category li a:hover { background: #f9f9f9; text-decoration: none; }
.mobile-category-nav { display: none; }
.category-page #column-left { display: none; }
.category-page #content { flex: 0 0 100%; width: 100%; padding: 10px 20px 20px; }

/* Breadcrumb, headings and category introduction */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 0;
  list-style: none;
  color: #999;
  text-align: center;
  justify-content: center;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #ccc; }
.breadcrumb a { color: #999; }
.page-header { margin: 0; padding: 0; text-align: center; }
.page-header h1 { margin: 8px 0 10px; font-size: 24px; font-weight: bold; }
.category-info {
  min-height: 105px;
  margin: 8px 0 15px;
  overflow: hidden;
  color: #800080;
  font-size: 15px;
}
.category-info .image { float: left; margin: 0 15px 10px 0; }
.category-info .image img { width: 90px; height: 90px; object-fit: cover; }
.category-info p { margin: 0; }
.product-filter {
  min-height: 35px;
  margin-bottom: 10px;
  padding: 8px 5px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #666;
  font-size: 12px;
}

/* Catalogue cards */
.row { display: flex; flex-wrap: wrap; }
.product-grid.row { margin: 0 -15px; }
.product-layout { width: 33.333333%; padding: 0 15px; }
.product-thumb { margin: 0 0 15px; padding: 8px; border: 1px solid transparent; }
.category-page .product-layout { width: 25%; padding-right: 6px; padding-left: 6px; }
.category-page .product-thumb { margin-bottom: 2px; padding: 4px; }
.product-thumb:hover { border-color: #eee; }
.product-thumb .image { position: relative; display: block; overflow: hidden; text-align: center; }
.product-thumb .image img {
  display: block;
  width: 260px;
  height: 260px;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.category-page .product-thumb .image img {
  width: 100%;
  height: auto;
  max-width: 280px;
  aspect-ratio: 1;
}
.product-thumb .back-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .2s ease;
}
.product-thumb:hover .back-image { opacity: 1; }
.product-thumb .back-image img { background: #fff; }
.product-grid .caption { min-height: 66px; padding-top: 7px; text-align: center; }
.category-page .product-grid .caption { min-height: 0; padding-top: 5px; }
.product-grid h2.name { margin: 0; font-size: 15px; font-weight: 600; }
.product-grid h2.name a { color: #800080; }
.product-grid .description { display: none; }
.product-grid .catalogue-year, .product-grid .catalogue-category {
  margin: 3px 0;
  color: #777;
  font-size: 13px;
  text-align: center;
}
.category-page .product-grid .catalogue-year { margin-top: 0; }
.no-image {
  display: grid;
  width: 100%;
  min-height: 220px;
  place-items: center;
  background: #f7f7f7;
  color: #888;
  font-size: 12px;
}

/* Cultivar details and tabbed reference information */
.cultivar-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 5px;
}
.main-product-image { position: relative; width: 100%; max-width: 500px; margin: 0 auto; text-align: center; }
.main-product-image img {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  transition: transform .2s ease;
}
.image-zoom-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgb(200 216 201 / 65%);
  border-radius: 999px;
  background: rgb(220 255 223 / 72%);
  box-shadow: 0 0 8px 2px rgb(220 255 223 / 45%);
  color: #6b006b;
  cursor: zoom-in;
}
.image-zoom-button:hover {
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 0 10px 3px rgb(255 255 255 / 45%);
}
.image-zoom-dialog {
  max-width: 96vw;
  max-height: 96vh;
  padding: 44px 12px 12px;
  border: 1px solid #ddd;
  background: #fff;
}
.image-zoom-dialog::backdrop { background: rgb(0 0 0 / 82%); }
.image-zoom-dialog img {
  display: block;
  width: auto;
  max-width: min(92vw, 1200px);
  max-height: calc(90vh - 48px);
  margin: 0 auto;
  object-fit: contain;
}
.image-zoom-close {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 10px;
  border: 0;
  background: #6b006b;
  color: #fff;
  cursor: pointer;
}
.cultivar-detail-layout .gallery { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cultivar-detail-layout .gallery-img {
  display: block;
  width: 74px;
  height: 74px;
  padding: 2px;
  border: 1px solid #eee;
  transition: transform .2s ease;
}
.cultivar-detail-layout .gallery-img img { width: 68px; height: 68px; object-fit: cover; }
.cultivar-body { line-height: 20px; }
.cultivar-body .availability { margin: 8px 0; color: #800080; font-weight: bold; }
.product-meta { margin: 8px 0; }
.product-meta dt { display: inline; font-weight: bold; }
.product-meta dt::after { content: ": "; }
.product-meta dd { display: inline; margin: 0; }
.product-meta dd::after { content: ""; display: block; }
.cultivar-body .tags { padding-top: 12px; }
.cultivar-body .tag {
  display: inline-block;
  margin: 2px 3px 2px 0;
  padding: 2px 5px;
  border: 1px solid #cce8cf;
  border-radius: 2px;
  background: #eaffdf;
  font-size: 11px;
}
.cultivar-body a.tag:hover { border-color: #800080; background: #dcffdf; text-decoration: none; }
.product-tabs { grid-column: 1 / -1; margin: 12px 0; }
.tab-buttons { display: flex; gap: 3px; border-bottom: 1px solid #ccc; }
.tab-buttons button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-bottom: 0;
  background: #f7f7f7;
  color: #803080;
  cursor: pointer;
}
.tab-buttons button.active { background: #dcffdf; }
.tab-panel { display: none; padding: 12px 5px; }
.tab-panel.active { display: block; }
.details { width: 100%; border-collapse: collapse; }
.details th, .details td { padding: 6px 8px; border-bottom: 1px solid #ddd; text-align: left; }
.details th { width: 180px; }
.cultivar-nav { display: flex; justify-content: space-between; padding: 8px 0; }

/* Home page, directory pages and search results */
body.home-page #column-left { display: none; }
body.home-page #content { flex: 0 0 100%; width: 100%; padding: 0 15px 24px; }
.home-hero { margin: 0 0 12px; }
.home-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.home-intro {
  max-width: 900px;
  margin: 8px auto 20px;
  padding: 0 12px;
  text-align: center;
}
.home-intro h1 {
  margin: 4px 0 8px;
  color: #800080;
  font: bold clamp(28px, 4vw, 24px)/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
.home-intro p { margin: 0; color: #6e006e; font-size: 15px; }
.featured-heading {
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 1px solid #c8d8c9;
  text-align: center;
}
.featured-heading h2 {
  margin: 0;
  color: #800080;
  font: normal 17px/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}
.featured-grid .product-layout { width: 25%; }
.featured-grid .product-thumb { margin-bottom: 16px; padding: 0; border: 0; }
.featured-grid .product-thumb .image img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.featured-grid .caption { min-height: 0; padding: 7px 0 0; }
.featured-grid h2.name { font: bold 16px/1.35 Arial, Helvetica, sans-serif; }
.featured-grid h2.name a { color: #800080; }
.featured-grid .catalogue-year, .featured-grid .catalogue-category { display: none; }
.cat-group { margin: 14px 0; }
.cat-group h2 { margin: 8px 0; font-size: 20px; }
.cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cat-list li a {
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid #ddd;
  background: #B3E6B7;
}
.cat-list li a:hover { background: #faf7fa; text-decoration: none; }
.cat-list .count { color: #777; }
.tag-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tag-list li a {
  display: flex;
  justify-content: space-between;
  padding: 7px 9px;
  border: 1px solid #ddd;
  background:#B3E6B7;
}
.tag-list li a:hover { background: #faf7fa; text-decoration: none; }
.editable-page-skeleton h2 {
  margin: 18px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  font-size: 19px;
}
.editable-page-skeleton p { margin: 0 0 12px; }
.breeder-list { columns: 3; column-gap: 20px; margin: 0; padding: 0; list-style: none; }
.breeder-list li { break-inside: avoid; border-bottom: 1px solid #eee; }
.breeder-list li a { display: flex; justify-content: space-between; padding: 6px; }
.breeder-meta p { margin: 2px 0; }
.search-results { max-width: 800px; }
.search-page-form {
  display: block;
  max-width: 720px;
  margin: 18px 0;
}
.search-page-form label { display: block; margin-bottom: 6px; font-weight: bold; }
.search-page-controls { display: flex; }
.search-page-controls input {
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #bbb;
  background:#B3E6B7;
  font: inherit;
}
.search-page-controls button {
  padding: 0 16px;
  border: 1px solid #6f2256;
  background: #6f2256;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.search-summary { min-height: 22px; color: #800080; font-weight: bold; }
.result-item { padding: 10px 0; border-bottom: 1px solid #ddd; }
.tag-result { display: flex; align-items: flex-start; gap: 12px; }
.tag-result-image { flex: 0 0 90px; width: 90px; height: 90px; }
.tag-result-image img { display: block; width: 90px; height: 90px; object-fit: contain; }
.result-content { min-width: 0; }
.result-item h2 { margin: 0 0 3px; font-size: 17px; }
.result-item h2 a { color: #803080; }
.result-item .sr-meta { margin: 0 0 5px; color: #777; font-size: 12px; }
.result-item .sr-desc { margin: 0; line-height: 1.5; }
.sr-desc { color: #666; }
.no-results { padding: 25px; text-align: center; color: #777; }
.search-pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 0; }
.search-pagination a { display: inline-block; padding: 6px 12px; border: 1px solid #a5bfa7; background: #b3e6b7; }
.search-pagination a:hover { border-color: #800080; text-decoration: none; }
.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  border-top: 2px solid #008000;
  background: #b3e6b7;
  color: #800080;
  font-size: 15px;
}
.footer-inner { width: 100%; max-width: 1170px; margin: 0 auto; padding: 22px 15px; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.footer-column h2 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid #a5bfa7;
  color: #800080;
  font-size: 16px;
}
.footer-column ul { margin: 0; padding: 0; list-style: none; }
.footer-column li { margin: 4px 0; }
.footer-column a, .footer-column a:visited { color: #6b006b; }
.footer-column a:hover { color: #cd01fe; }
.footer-bottom { padding: 10px 15px; border-top: 1px solid #008000; background: #a5bfa7; text-align: center; }
.footer-bottom p { margin: 0; color: #800080; font-size: 12px; }
.site-map-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-map-pages a { display: block; padding: 7px 9px; border: 1px solid #ddd; background: #b3e6b7; }
.site-map-category { padding: 8px 0; border-bottom: 1px solid #ddd; }
.site-map-category summary { color: #800080; cursor: pointer; font-weight: bold; }
.site-map-category p { margin: 6px 0; }
.site-map-cultivars { columns: 3; margin: 0; padding-left: 20px; }
.language-switcher { padding: 8px 15px; border-top: 1px solid #a5bfa7; color: #555; }
.language-switcher a { display: inline-block; margin: 0 4px; white-space: nowrap; }
.language-switcher a[aria-current="page"] { color: #800080; font-weight: bold; }
.language-landing { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.language-picker { width: min(100%, 520px); text-align: center; }
.language-picker img { display: block; width: min(100%, 360px); margin: 0 auto 28px; }
.language-picker h1 { margin: 0 0 18px; color: #800080; font: bold 28px/1.2 Arial, Helvetica, sans-serif; }
.language-picker ul { margin: 0; padding: 0; list-style: none; }
.language-picker li { margin: 8px 0; }
.language-picker a { display: block; padding: 11px 16px; border: 1px solid #a5bfa7; background: #b3e6b7; font-size: 17px; }
.language-picker a:hover { background: #faf7fa; text-decoration: none; }
.back-to-top {
  position: fixed;
  z-index: 30;
  right: 20px;
  bottom: 20px;
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #5e1b5e;
  border-radius: 50%;
  background: #800080;
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
  color: #fff;
  cursor: pointer;
}
.back-to-top svg { width: 23px; height: 23px; }
.back-to-top path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.back-to-top.is-visible { display: inline-flex; }
.back-to-top:hover { background: #5e1b5e; }
.back-to-top:focus-visible { outline: 3px solid #008000; outline-offset: 2px; }

@media (max-width: 767px) {
  .leftlogo { flex-wrap: wrap; }
  .leftlogo > div { width: 100%; text-align: center; }
  #header #logo, #header .leftbox { flex: 0 0 100%; width: 100%; }
  #header #logo { text-align: center; }
  #header .leftbox { justify-content: center; margin-left: 0; }
  #header .off-logo { font-size: 22px; }
  .language-switcher { line-height: 2; }
  #menu .navbar-collapse { overflow: visible; }
  #menu .nav { min-width: 0; flex-wrap: wrap; }
  #menu .nav li a,
  #menu .nav > li > details > summary {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 14px;
  }
  #menu .nav > li > details > summary { gap: 4px; }
  .mobile-category-nav {
    display: block;
    padding: 9px 15px;
    border-bottom: 1px solid #ddd;
    background: #f6f1f6;
    color: #6f2256;
  }
  .mobile-category-nav summary { cursor: pointer; font-weight: bold; }
  .mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    padding: 10px 0 2px;
  }
  #content-wrapper .container-inner > .row { display: block; }
  #column-left { display: none; }
  #content { width: 100%; padding: 12px; }
  body.home-page #content { padding: 0 12px 20px; }
  .featured-grid .product-layout { width: 100%; }
  .product-layout { width: 100%; padding: 0 8px; }
  .category-page .product-layout { width: 50%; }
  .product-thumb .image img { height: auto; aspect-ratio: 1; }
  .cultivar-detail-layout { grid-template-columns: 1fr; }
  .product-tabs { grid-column: auto; }
  .category-info { min-height: 0; }
  .breeder-list { columns: 1; }
  .site-map-cultivars { columns: 1; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (hover: hover) {
  .main-product-image:hover img { transform: scale(1.05); }
  .cultivar-detail-layout .gallery-img:hover { position: relative; z-index: 1; transform: scale(1.05); }
}

@media (max-width: 420px) {
  .home-shortcuts { flex-direction: column; }
  .category-page .product-layout { width: 100%; }
}

@media (min-width: 768px) and (max-width: 991px) {
  .product-layout { width: 50%; }
  .category-page .product-layout { width: 50%; }
  .featured-grid .product-layout { width: 50%; }
}
