/* Event Calendar 3.0.0-dev.151
   Bigger, centered Event Highlights. No fixed 10-row card sizing: render
   the real 0-10 upcoming events with readable titles. The wood panel remains
   exactly where it was; excess events scroll inside its open card area. */
@media (min-width: 981px) {
  .iiec-calendar--harvest .iiec-harvest-highlights {
    overflow: hidden !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlights-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: clamp(4px, .42vw, 8px) !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 2px 2px 5px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #eec37c rgba(75, 31, 16, .4);
    overscroll-behavior: contain;
  }
  .iiec-calendar--harvest .iiec-harvest-highlights-list::-webkit-scrollbar { width: 8px; }
  .iiec-calendar--harvest .iiec-harvest-highlights-list::-webkit-scrollbar-track { background: rgba(55, 25, 16, .36); border-radius: 10px; }
  .iiec-calendar--harvest .iiec-harvest-highlights-list::-webkit-scrollbar-thumb { background: #eec37c; border-radius: 10px; }
  .iiec-calendar--harvest .iiec-harvest-highlights-list[data-iiec-highlight-count="1"],
  .iiec-calendar--harvest .iiec-harvest-highlights-list[data-iiec-highlight-count="2"],
  .iiec-calendar--harvest .iiec-harvest-highlights-list[data-iiec-highlight-count="3"],
  .iiec-calendar--harvest .iiec-harvest-highlights-list[data-iiec-highlight-count="4"] {
    justify-content: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight {
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    min-height: clamp(59px, 4.5vw, 88px) !important;
    max-height: none !important;
    gap: clamp(6px, .7vw, 13px) !important;
    padding: 4px clamp(5px, .65vw, 12px) !important;
    margin: 0 !important;
    border: 2px solid rgba(248, 195, 113, .68) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, rgba(136, 74, 39, .96), rgba(79, 36, 23, .96)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 232, 185, .26), 0 3px 0 rgba(49, 19, 11, .28) !important;
    overflow: visible !important;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight:hover,
  .iiec-calendar--harvest .iiec-harvest-highlight:focus-visible {
    background: linear-gradient(135deg, #a45c33, #70412a) !important;
    border-color: #ffebaf !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-icon,
  .iiec-calendar--harvest .iiec-harvest-highlight-icon-fallback {
    flex: 0 0 clamp(34px, 3.1vw, 49px) !important;
    width: clamp(34px, 3.1vw, 49px) !important;
    height: clamp(34px, 3.1vw, 49px) !important;
    font-size: clamp(27px, 2.5vw, 36px) !important;
    line-height: 1 !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-copy {
    flex: 1 1 0 !important;
    display: flex !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-align: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-name {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    font: 900 clamp(16px, 1.38vw, 23px)/1.13 'Arial Rounded MT Bold','Trebuchet MS', sans-serif !important;
    color: #fff8e5 !important;
    text-align: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-date {
    max-width: 100% !important;
    white-space: normal !important;
    font: 800 clamp(12px, .93vw, 17px)/1.2 'Trebuchet MS', sans-serif !important;
    color: #ffd38c !important;
    text-align: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-arrow {
    flex: 0 0 auto !important;
    font-size: clamp(23px, 1.8vw, 33px) !important;
    color: #ffdf80 !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlights-empty {
    margin: auto !important;
    font-size: clamp(15px, 1.1vw, 19px) !important;
  }
}
/* In the stacked tablet/mobile layout cards can grow naturally; keep the
   large titles without forcing the seasonal layout to become wider. */
@media (max-width: 980px) {
  .iiec-calendar--harvest .iiec-harvest-highlight {
    min-height: 84px !important;
    padding: 13px 14px !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-copy {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    min-width: 0 !important;
    gap: 5px !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-name {
    display: block !important;
    font: 900 clamp(16px, 3.1vw, 21px)/1.2 'Arial Rounded MT Bold','Trebuchet MS', sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    overflow: visible !important;
    text-align: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-date {
    font: 800 clamp(13px, 2.6vw, 16px)/1.2 'Trebuchet MS', sans-serif !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .iiec-calendar--harvest .iiec-harvest-highlight-icon,
  .iiec-calendar--harvest .iiec-harvest-highlight-icon-fallback {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .iiec-calendar--harvest .iiec-harvest-highlight { transition: none !important; }
}
