/* ##########################################################################
   Rooted in Zoho — MERGED stylesheet (all pages)
   Order: theme tokens/toggle -> nav -> home -> details -> no-results -> 404
   ########################################################################## */

/* ===== [1/6] theme (tokens + light/dark + toggle) ===== */
/* ==========================================================================
   Rooted in Zoho — Theme
   Design tokens + light/dark theming. Load this on every page that uses the
   shared nav. Dark is the default; [data-theme="light"] on .zwc-wrapper
   overrides only the colour tokens.
   ========================================================================== */

/* Design tokens — global defaults (dark) */
:root {
  --zwc-primary-color: #000;
  --zwc-secondary-color: #fff;
  --zwc-c-bg: #000;
  --zwc-c-text: #fff;
  --zwc-c-muted: #c8d3da;
  --zwc-c-placeholder: #6c6c6c;
  --zwc-c-surface: #303030;
  --zwc-c-focus: #7dd3fc;
  --zwc-c-accent: #d4e878;
  --zwc-c-menu-bg: #f6f1e8;
  --zwc-c-menu-fg: #111;
  --zwc-c-card-border: #f7f7f7;
  --zwc-c-divider: rgba(255, 255, 255, 0.06);
  --zwc-c-border-soft: rgba(255, 255, 255, 0.3);
  --zwc-c-border-strong: rgba(255, 255, 255, 0.6);
  --zwc-c-hover-veil: rgba(255, 255, 255, 0.08);
  --zwc-fs-body: clamp(12px, 1vw, 14px);
  --zwc-fs-label: clamp(12px, 1.1vw, 14px);
  --zwc-gap-grid: clamp(10px, 1.5vw, 20px);
  --zwc-btn-size: 28px;
  --zwc-btn-size-lg: 28px;
  --zwc-tr: 0.2s ease;
}

/* Wrapper paints the themed surface */
.zwc-wrapper {
  background-color: var(--zwc-c-bg);
  color: var(--zwc-c-text);
  transition:
    background-color var(--zwc-tr),
    color var(--zwc-tr);
}

/* Light theme — colour tokens only; layout/typography tokens are inherited. */
.zwc-wrapper[data-theme="light"] {
  --zwc-c-bg: #fff;
  --zwc-c-text: #1a1a1a;
  --zwc-c-muted: #5a6b73;
  --zwc-c-placeholder: #9a9a9a;
  --zwc-c-surface: #f0ede6;
  --zwc-c-focus: #0284c7;
  --zwc-c-accent: #c3dd5a;
  --zwc-c-menu-bg: #f6f1e8;
  --zwc-c-menu-fg: #111;
  --zwc-c-card-border: #7D7D7D;
  --zwc-c-border-soft: rgba(0, 0, 0, 0.2);
  --zwc-c-border-strong: rgba(0, 0, 0, 0.45);
  --zwc-c-hover-veil: rgba(0, 0, 0, 0.05);
  --zwc-c-divider: rgb(118 118 118 / 20%);
}

/* Brand logo — dark/light SVG variants swapped by theme */
.zwc-nav-brand .zwc-nav-brand-light {
  display: none;
}

.zwc-wrapper[data-theme="light"] .zwc-nav-brand .zwc-nav-brand-dark {
  display: none;
}

.zwc-wrapper[data-theme="light"] .zwc-nav-brand .zwc-nav-brand-light {
  display: block;
}

/* Theme toggle — sun shown in dark mode, moon in light mode */
.zwc-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--zwc-btn-size-lg);
  height: var(--zwc-btn-size-lg);
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--zwc-c-border-soft);
  color: var(--zwc-c-text);
  transition:
    background-color var(--zwc-tr),
    border-color var(--zwc-tr),
    color var(--zwc-tr);
}

.zwc-theme-toggle .zwc-theme-icon-moon {
  display: none;
}

.zwc-wrapper[data-theme="light"] .zwc-theme-toggle .zwc-theme-icon-sun {
  display: none;
}

.zwc-wrapper[data-theme="light"] .zwc-theme-toggle .zwc-theme-icon-moon {
  display: block;
}

aside,
header,
footer {
  display: none;
}

/* ===== [2/6] nav ===== */
/* Utility used inside the nav -------------------------------------------- */
.zwc-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared focus ring ------------------------------------------------------ */
.zwc-nav-menu a:focus-visible,
.zwc-nav-search button:focus-visible,
.zwc-stories-filter-trigger:focus-visible,
.zwc-stories-label-trigger:focus-visible,
.zwc-menu-close:focus-visible {
  outline: 2px solid var(--zwc-c-focus);
  outline-offset: 2px;
}

.zwc-wrapper .content-wrap {
  max-width: 1200px;
  margin: 0 auto;
}



/* ==========================================================================
   Nav bar
   ========================================================================== */
.zwc-nav {
  position: sticky;
  top: 0px;
  inset: 0 0 auto 0;
  z-index: 10;
  background-color: var(--zwc-c-bg);
  border-bottom: 1px solid var(--zwc-c-divider);
}

.zwc-nav .content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 32px);
  padding: 14px 0;
}

/* Brand block — SVG logo (dark/light variant swap lives in theme.css) ----- */
.zwc-nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.zwc-nav-brand img {
  display: block;
  width: auto;
  height: clamp(32px, 3.4vw, 40px);
}

/* Inline category links -------------------------------------------------- */
.zwc-nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(14px, 1.8vw, 28px);
}

.zwc-nav-menu a {
  position: relative;
  padding: 4px 0;
  color: var(--zwc-c-muted);
  font-size: clamp(12px, 1vw, 16px);
  text-decoration: none;
  transition: color var(--zwc-tr);
}

.zwc-nav-menu a:hover,
.zwc-nav-menu a.is-active {
  color: var(--zwc-c-text);
}

.zwc-nav-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background-color: var(--zwc-c-text);
}

/* Search + theme toggle group -------------------------------------------- */
.zwc-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search field ----------------------------------------------------------- */
.zwc-nav-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
  background-color: var(--zwc-c-surface);
  border-radius: 4px;
}

.zwc-nav-search input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--zwc-c-text);
  font-size: clamp(12px, 1vw, 13px);
  width: clamp(100px, 14vw, 180px);
  appearance: none;
  box-shadow: none;
}

.zwc-nav-search input::placeholder {
  color: var(--zwc-c-placeholder);
}

.zwc-nav-search input::-webkit-search-cancel-button,
.zwc-nav-search input::-webkit-search-decoration {
  appearance: none;
  display: none;
}

.zwc-nav-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--zwc-c-muted);
  cursor: pointer;
}

.zwc-nav-search button:hover {
  color: var(--zwc-c-text);
}

.zwc-nav-search .zwc-nav-search-close {
  display: none;
}

/* Theme toggle styling lives in theme.css */

/* ==========================================================================
   Stories tools (Filter + Sort By) — live in nav on desktop
   ========================================================================== */

/* Shared trigger style for SORT BY + FILTER ------------------------------ */
.zwc-stories-label,
.zwc-stories-filter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--zwc-fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zwc-stories-tools {
  display: none;
}

.zwc-stories-label-trigger,
.zwc-stories-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--zwc-c-text);
  font-family: var(--zf-primary-medium);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.zwc-stories-label-chev {
  transition: transform var(--zwc-tr);
}

.zwc-stories-label-trigger[aria-expanded="true"] .zwc-stories-label-chev {
  transform: rotate(180deg);
}

/* Shared dropdown popover for SORT BY + FILTER --------------------------- */
.zwc-stories-label-menu,
.zwc-stories-filter-menu {
  list-style: none;
  position: absolute;
  top: calc(100% + 10px);
  margin: 0;
  padding: clamp(10px, 1.2vw, 16px) 0;
  background-color: var(--zwc-c-menu-bg);
  color: var(--zwc-c-menu-fg);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  z-index: 5;
  letter-spacing: 0.04em;
}

.zwc-stories-label-menu:not([hidden]),
.zwc-stories-filter-menu:not([hidden]) {
  animation: zwcMenuSlideUp 0.25s ease both;
}

.zwc-stories-label-menu.is-closing,
.zwc-stories-filter-menu.is-closing {
  animation: zwcMenuSlideDown 0.2s ease both;
}

@keyframes zwcMenuSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes zwcMenuSlideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(20px);
    opacity: 0;
  }
}

.zwc-stories-label-menu {
  right: 0;
  min-width: 240px;
}

.zwc-stories-filter-menu {
  left: 0;
  min-width: 200px;
}

.zwc-stories-label-menu::before,
.zwc-stories-filter-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  width: 12px;
  height: 12px;
  background-color: inherit;
  transform: rotate(45deg);
}

.zwc-stories-label-menu::before {
  right: 20px;
}

.zwc-stories-filter-menu::before {
  left: 20px;
}

.zwc-stories-label-menu li,
.zwc-stories-filter-menu li {
  display: flex;
  font-family: var(--primaryfont-semibold);
  font-size: clamp(12px, 1vw, 13px);
  cursor: pointer;
}

.zwc-stories-label-menu li {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(8px, 1vw, 12px) clamp(18px, 2vw, 28px);
}

.zwc-stories-filter-menu li a {
  display: block;
  padding: clamp(8px, 1vw, 12px) clamp(18px, 2vw, 28px);
  color: inherit;
  text-decoration: none;
}
.zwc-stories-label-menu li a {
color:var(--zwc-c-menu-fg);
}

.zwc-stories-label-menu li:hover,
.zwc-stories-filter-menu li:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.zwc-stories-label-menu li[aria-selected="true"]::after {
  content: "";
  width: 12px;
  height: 8px;
  border-left: 1.5px solid var(--zwc-c-menu-fg);
  border-bottom: 1.5px solid var(--zwc-c-menu-fg);
  transform: rotate(-45deg) translate(1px, -2px);
}

.zwc-stories-filter-menu li[aria-selected="true"] a {
  font-family: var(--primaryfont-bold);
}

/* Modal head + close (mobile only) --------------------------------------- */
li.zwc-menu-head {
  display: none;
}

.zwc-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  background: transparent;
  border: 0;
  color: currentColor;
  cursor: pointer;
}


.zwc-stories:not(:has(.zwc-pagination))+.zwc-roots {
  margin-top: clamp(40px, 6vw, 80px);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media screen and (max-width: 768px) {
  .zwc-roots {
    margin-bottom: clamp(40px, 4vw, 50px);
  }

  .zwc-nav-menu,
  .zwc-stories-label-value {
    display: none;
  }

  .zwc-nav-search input {
    width: clamp(90px, 18vw, 140px);
  }

  /* Tools become a fixed bottom action bar -------------------------------- */
  .zwc-stories-tools {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    gap: 0;
    background-color: var(--zwc-c-bg);
    border-top: 1px solid var(--zwc-c-divider);
  }

  .zwc-stories-filter,
  .zwc-stories-label {
    flex: 1;
    justify-content: center;
    border-top: 1px solid #6c6c6c;
  }

  .zwc-stories-filter {
    display: inline-flex;
  }

  .zwc-stories-label {
    border-left: 1px solid #6c6c6c;
  }

  .zwc-stories-filter-trigger,
  .zwc-stories-label-trigger {
    justify-content: center;
    padding: clamp(14px, 4vw, 18px) 16px;
  }

  /* Sort-by chevron points up at rest, flips down when modal opens ------- */
  .zwc-stories-label-chev {
    transform: rotate(180deg);
  }

  .zwc-stories-label-trigger[aria-expanded="true"] .zwc-stories-label-chev {
    transform: rotate(0deg);
  }

  /* Bottom-sheet modals -------------------------------------------------- */
  .zwc-stories-filter-menu,
  .zwc-stories-label-menu {
    position: fixed;
    inset: auto 0 0 0;
    transform: none;
    width: 100%;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 0 20px;
    background-color: var(--zwc-c-bg);
    color: var(--zwc-c-text);
    border-radius: 16px 16px 0 0;
  }

  .zwc-stories-filter-menu:not([hidden]),
  .zwc-stories-label-menu:not([hidden]) {
    animation: zwcMenuSlideUpSheet 0.3s ease both;
  }

  .zwc-stories-filter-menu.is-closing,
  .zwc-stories-label-menu.is-closing {
    animation: zwcMenuSlideDownSheet 0.25s ease both;
  }

  @keyframes zwcMenuSlideUpSheet {
    from {
      transform: translateY(100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes zwcMenuSlideDownSheet {
    from {
      transform: translateY(0);
      opacity: 1;
    }

    to {
      transform: translateY(100%);
      opacity: 0;
    }
  }

.zwc-stories-filter-menu li:nth-child(2),.zwc-stories-label-menu li:nth-child(2) {
    margin-top: 20px;
  }

  .zwc-stories-filter-menu::before,
  .zwc-stories-label-menu::before {
    display: none;
  }

  li.zwc-menu-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 20px;
    border: 1px solid #5d5d5d;
    color: var(--zwc-c-text);
    font-family: var(--zf-primary-medium);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 16px 16px 0 0;
  }

  .zwc-menu-close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--zwc-c-text);
  }

  .zwc-stories-filter-menu li:not(.zwc-menu-head), .zwc-stories-label-menu li:not(.zwc-menu-head) {
    justify-content: center;
    color: var(--zwc-c-text);
  }

  .zwc-stories-label-menu li a{
     color: var(--zwc-c-text);
}

  .zwc-stories-filter-menu li:hover,
  .zwc-stories-label-menu li:hover {
    background-color: var(--zwc-c-hover-veil);
  }

  .zwc-stories-filter-menu li a {
    color: var(--zwc-c-text);
  }

  .zwc-stories-label-menu li[aria-selected="true"]::after {
    display: none;
  }
}

@media screen and (max-width: 767px) {

  /* Compact: only icon visible, input collapsed --------------------------- */
  .zwc-nav-search {
    background-color: transparent;
    gap: 0px;
    padding: 0;
  }

  .zwc-nav-search-submit svg {
    width: 19px;
    height: 19px;
  }

  .zwc-nav-search input {
    width: 0;
    padding: 0;
    border: 0;
  }

  /* Full-screen overlay when search is open or closing ------------------- */
  .zwc-nav-search.is-open,
  .zwc-nav-search.is-closing {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    background-color: var(--zwc-c-menu-bg);
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .zwc-nav-search.is-open {
    animation: zwcNavSearchOpen 0.3s ease forwards;
  }

  .zwc-nav-search.is-closing {
    animation: zwcNavSearchClose 0.25s ease forwards;
  }

  @keyframes zwcNavSearchOpen {
    from {
      transform: translateY(-100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes zwcNavSearchClose {
    from {
      transform: translateY(0);
      opacity: 1;
    }

    to {
      transform: translateY(-100%);
      opacity: 0;
    }
  }

  .zwc-nav-search.is-open .zwc-nav-search-submit,
  .zwc-nav-search.is-closing .zwc-nav-search-submit {
    color: var(--zwc-c-menu-fg);
    flex-shrink: 0;
  }

  .zwc-nav-search.is-open input,
  .zwc-nav-search.is-closing input {
    flex: 1;
    width: auto;
    padding: 0;
    color: var(--zwc-c-menu-fg);
    font-size: 16px;
  }

  .zwc-nav-search.is-open input::placeholder,
  .zwc-nav-search.is-closing input::placeholder {
    color: rgba(0, 0, 0, 0.45);
  }

  .zwc-nav-search.is-open .zwc-nav-search-close,
  .zwc-nav-search.is-closing .zwc-nav-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: transparent;
    border: 0;
    color: var(--zwc-c-menu-fg);
    cursor: pointer;
    flex-shrink: 0;
  }
}

/* ===== [3/6] home (styles.css) ===== */
/* ==========================================================================
   Rooted in Zoho — Customer Stories Page
   ========================================================================== */



/* Shared focus ring ------------------------------------------------------ */
.zwc-pag-btn:focus-visible,
.zwc-pag-num:focus-visible,
.zwc-roots-social a:focus-visible {
  outline: 2px solid var(--zwc-c-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Banner
   ========================================================================== */
.zwc-banner {
  position: relative;
  overflow: hidden;
  max-width: 1920px;
  margin-inline: auto;
}

.zwc-banner .content-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
}

.zwc-logo {
  width: clamp(100px, 28vw, 390px);
  height: auto;
}

/* ==========================================================================
   Stories — header
   ========================================================================== */
.zwc-stories-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(40px, 4vw, 60px) 30px clamp(30px, 3.5vw, 60px);
  color: var(--zwc-c-text);
  font-size: var(--zwc-fs-label);
}

.zwc-stories-count {
  font-family: var(--zf-primary-medium);
}

/* ==========================================================================
   Stories — grid + cards
   ========================================================================== */
.zwc-stories-grid {
  column-count: 4;
  column-gap: var(--zwc-gap-grid);
}

section:not(.zwc-related) .zwc-story-card {
  margin: 0 0 var(--zwc-gap-grid);
}

.zwc-story-card {
  break-inside: avoid;
  border-radius: 8px;
  border: 0.5px solid var(--zwc-c-card-border);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.zwc-story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.zwc-story-card>a {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 0.9vw, 10px);
  padding: clamp(8px, 0.9vw, 10px);
  color: inherit;
  text-decoration: none;
}

.zwc-story-card>a:focus-visible {
  outline: 2px solid var(--zwc-c-focus);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Story tag — category modifier overrides only the two tokens ------------ */
.zwc-story-tag {
  position: relative;
  font-family: var(--zf-primary-medium);
  font-size: clamp(12px, 1.2vw, 18px);
  padding: 10px 10px 10px clamp(34px, 4vw, 48px);
  border-radius: 4px;
  line-height: 1.4;
  color: var(--zwc-c-menu-fg);
  background-color: var(--zwc-story-tag-bg, var(--zwc-c-bg));
  border: 1px solid var(--zwc-story-tag-border, transparent);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.zwc-story-tag::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: clamp(20px, 2vw, 28px);
  height: clamp(20px, 2vw, 28px);
  transform: translateY(-50%);
  background-image: var(--zwc-bef-image, none);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.zwc-story-tag.zwc-is-shrub {
  --zwc-story-tag-bg: #e3f2eb;
  --zwc-bef-image: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-shrub.svg);
}

.zwc-story-tag.zwc-is-creeper {
  --zwc-story-tag-bg: #d4eaff;
  --zwc-bef-image: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-creeper.svg);
}

.zwc-story-tag.zwc-is-tree {
  --zwc-story-tag-bg:  #ffe789;
  --zwc-bef-image: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-tree.svg);
}

.zwc-story-tag.zwc-is-succulent {
  --zwc-story-tag-bg: #fff1d4;
  --zwc-bef-image: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-succulent.svg);
}

.zwc-story-tag.zwc-is-fauna {
  --zwc-story-tag-bg: #e7daff;
  --zwc-bef-image: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-fauna.svg);
}

.zwc-story-media {
  border-radius: 6px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.zwc-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.85vw, 10px);
  padding: clamp(30px, 3vw, 40px) 0 clamp(40px, 4vw, 60px);
}

/* Round prev/next arrow buttons + numbered page anchors share base ------- */
.zwc-pag-btn,
.zwc-pag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--zf-primary-medium);
  transition:
    background-color var(--zwc-tr),
    border-color var(--zwc-tr),
    color var(--zwc-tr);
}

.zwc-pag-btn {
  width: var(--zwc-btn-size);
  height: var(--zwc-btn-size);
  padding: 0;
  background: transparent;
  border: 1px solid var(--zwc-c-text);
  color: var(--zwc-c-text);
}

.zwc-pag-btn:hover {
  background-color: var(--zwc-c-hover-veil);
  border-color: var(--zwc-c-border-strong);
}

.zwc-pag-num {
  min-width: var(--zwc-btn-size-lg);
  height: var(--zwc-btn-size-lg);
  padding: 0 8px;
  background: transparent;
  border: 0;
  color: var(--zwc-c-muted);
  font-size: var(--zwc-fs-body);
}

.zwc-pag-num:hover {
  color: var(--zwc-c-text);
  background-color: var(--zwc-c-divider);
}

.zwc-pag-num.is-active {
  background-color: var(--zwc-c-accent);
  color: #1a1a1a;
}

.zwc-pag-ellipsis {
  min-width: 24px;
  text-align: center;
  color: var(--zwc-c-muted);
  font-family: var(--zf-primary-medium);
  font-size: var(--zwc-fs-body);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   Roots illustration / footer art
   ========================================================================== */
.zwc-roots {
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  overflow: hidden;
}

.zwc-roots::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Footer art overlay text sits on a fixed dark leaf image — keep it light in
   both themes regardless of the wrapper's text token. */
.zwc-roots h2 {
  margin: 0;
  font-family: var(--primaryfont-regular);
  font-size: clamp(16px, 1.8vw, 18px);
  color: #fff;
}

.zwc-roots-bg {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.zwc-roots-bg img {
  display: block;
  width: 100%;
  height: auto;
}

.zwc-roots .content-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 60px);
  padding: 40px 0px;
}

/* Copyright line pinned to the bottom of the footer band */
.zwc-roots .zw-only-copyright {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(12px, 1.6vw, 20px);
  z-index: 1;
  text-align: center;
  color: #fff;
  font-size: var(--zwc-fs-c1, 14px);
}

.zwc-roots-quote {
  max-width: clamp(350px, 39vw, 560px);
  margin: 0;
  font-family: var(--zf-primary-regularserif);
  font-size: clamp(16px, 1.8vw, 26px);
  line-height: 1.4;
  color: #fff;
}

.zwc-roots-social {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: clamp(12px, 1.5vw, 20px);
}

.zwc-roots-list {
  display: flex;
  gap: 10px;
}

.zwc-roots-list img,
.zwc-banner-video {
  vertical-align: middle;
}


/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
  .zwc-stories-grid {
    column-count: 3;
  }
}

@media screen and (max-width: 767px) {

    .zwc-stories-count {
    display: block;
    width: 100%;
    text-align: center;
  }

  .zwc-stories-head .zwc-stories-label {
    display: none;
  }
  
  .zwc-stories-grid {
    column-count: 2;
  }

  .zwc-stories .content-wrap {
    max-width: 500px;
  }

  .zwc-roots .content-wrap {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .zwc-roots .zwc-banner-video {
    height: 40vh;
    object-fit: cover;
  }
}

@media screen and (max-width: 480px) {


  .zwc-stories .content-wrap {
    max-width: 370px;
  }
}



/* Grid ------------------------------------------------------------------- */
.zwc-page-detail .zwc-story-card {
  border-radius: 8px;
  border: 1px solid var(--zwc-color-frame);
}

.zwc-page-detail .zwc-story-card>a:focus-visible {
  outline: 2px solid var(--zwc-color-focus);
  outline-offset: 2px;
  border-radius: 8px;
}

.zwc-page-detail .zwc-story-media {
  order: -1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 0.89;
}

.zwc-plant-detail,
.zwc-related {
  --zwc-radius-thumb: 6px;
  --zwc-radius-media: 12px;
  --zwc-radius-frame: 20px;
  --zwc-color-text: #fff;
  --zwc-color-heading: #e3e3d8;
  --zwc-color-label: #baebc6;
  --zwc-color-frame: #458922;
  --zwc-color-thumb-active: #0082ff;
  --zwc-color-focus: #7dd3fc;
  --zwc-gap-grid: clamp(10px, 1.4vw, 18px);
  --zwc-gap-col: clamp(40px, 6vw, 88px);
  --zwc-section-pad-y: clamp(32px, 5vw, 80px);
}

/* Light theme — the detail/related local colour tokens are dark-only above,
   so remap the text/heading/label tokens for readability on a light bg. */
.zwc-wrapper[data-theme="light"] .zwc-plant-detail,
.zwc-wrapper[data-theme="light"] .zwc-related {
  --zwc-color-text: #1a1a1a;
  --zwc-color-heading: #1a1a1a;
  --zwc-color-label: #2e7d32;
  --zwc-color-focus: #0284c7;
}

/* Reusable leaf decoration — size + offset driven by local CSS vars ------- */
.zwc-plant-leaf {
  position: absolute;
  background-image: var(--zwc-leaf-img,
      url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-plant-icon.svg));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  width: var(--zwc-leaf-w, 60%);
  height: var(--zwc-leaf-h, 11.1%);
  bottom: var(--zwc-leaf-bottom, 16%);
  left: var(--zwc-leaf-left, 41%);
  top: var(--zwc-leaf-top, auto);
  pointer-events: none;
}

/* Reusable focus ring ----------------------------------------------------- */
.zwc-plant-thumb:focus-visible,
.zwc-related-arrow:focus-visible {
  outline: 2px solid var(--zwc-color-focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Plant Detail
   ========================================================================== */
.zwc-plant-detail .content-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--zwc-gap-col);
  padding: clamp(40px, 9vw, 130px) 0 var(--zwc-section-pad-y);
}

/* Gallery — main image + vertical thumbnail strip ------------------------- */
.zwc-plant-gallery {
  display: flex;
  gap: clamp(10px, 1.2vw, 16px);
  flex: 1 1 400px;
  max-width: 560px;
}

.zwc-plant-main {
  flex: 1;
  padding: 16px;
  border: 1px solid var(--zwc-color-frame);
  border-radius: var(--zwc-radius-frame);
  z-index: 1;
  background-color: var(--zwc-c-bg);
}

.zwc-plant-main img,
.zwc-plant-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.zwc-plant-main img {
  border-radius: var(--zwc-radius-media);
}

.zwc-plant-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zwc-plant-thumbs li {
  width: 48px;
}

.zwc-plant-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--zwc-radius-thumb);
  background: transparent;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.zwc-plant-thumb.is-active {
  border-color: var(--zwc-color-thumb-active);
}

/* Info column ------------------------------------------------------------- */
.zwc-plant-info {
  max-width: 466px;
}

.zwc-plant-desc p {
  margin-bottom: 0px;
}

.zwc-plant-info .zwc-story-tag {
  display: inline-block;
  padding: 6px 12px 6px 36px;
  font-size: clamp(11px, 1vw, 13px);
  text-decoration: none;
}

.zwc-plant-info .zwc-story-tag::before {
  left: 6px;
  width: 20px;
  height: 20px;
}

.zwc-plant-info .zwc-story-tag.zwc-is-shrub,
.zwc-plant-info .zwc-story-tag.zwc-is-creeper,
.zwc-plant-info .zwc-story-tag.zwc-is-tree,
.zwc-plant-info .zwc-story-tag.zwc-is-succulent,
.zwc-plant-info .zwc-story-tag.zwc-is-fauna {
  --zwc-story-tag-bg: transparent;
  --zwc-c-menu-fg: var(--zwc-c-text);
  padding-left: 32px;
}

.zwc-plant-info .zwc-story-tag.zwc-is-shrub {
  --zwc-story-tag-border: #458922;
}

.zwc-plant-info .zwc-story-tag.zwc-is-creeper {
  --zwc-story-tag-border: #0f589f;
}

.zwc-plant-info .zwc-story-tag.zwc-is-tree {
  --zwc-story-tag-border: #ffb700;
}

.zwc-plant-info .zwc-story-tag.zwc-is-succulent {
  --zwc-story-tag-border: #a06417;
}

.zwc-plant-info .zwc-story-tag.zwc-is-fauna {
  --zwc-story-tag-border: #c09dff;
}

.zwc-plant-title {
  margin: clamp(12px, 1.5vw, 30px) 0 0;
  font-family: var(--zf-primary-boldserif);
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1;
  color: var(--zwc-color-heading);
}

.zwc-plant-scientific {
  margin: 8px 0 0;
  font-family: var(--zf-secondary-regularitalic);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.1;
  color: var(--zwc-color-text);
}

.zwc-plant-about-label {
  margin: clamp(30px, 4.3vw, 60px) 0 8px;
  font-family: var(--zf-primary-medium);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zwc-color-label);
}

.zwc-plant-desc {
  margin: 0;
  line-height: 1.6;
  color: var(--zwc-color-text);
}

/* ==========================================================================
   Related Carousel
   ========================================================================== */
.zwc-related {
  position: relative;
  max-width: 1920px;
  margin-inline: auto;
  overflow-x: hidden;
}

.zwc-related .content-wrap {
  margin-top: 10%;
}

/* Per-instance leaf variant — overrides the token defaults ---------------- */
.zwc-related .zwc-plant-leaf {
  --zwc-leaf-img: url(https://odblogs.zohowebstatic.com/sites/rooted-in-zoho/catalog/files/zwc-plant-1.svg);
  --zwc-leaf-w: 80%;
  --zwc-leaf-h: 20%;
  --zwc-leaf-bottom: auto;
  --zwc-leaf-left: 20%;
}

.zwc-related-titles {
  margin: 0 0 clamp(20px, 3vw, 40px);
  font-family: var(--primaryfont-semibold);
  font-size: clamp(18px, 2vw, 24px);
  text-align: center;
  color: var(--zwc-color-text);
}

.zwc-related-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 25px;
  padding-right: clamp(28px, 4vw, 56px);
}

.zwc-related-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--zwc-gap-grid);
  justify-content: center;
}

.zwc-related-list::-webkit-scrollbar {
  display: none;
}

.zwc-related-list .zwc-story-card {
  width: calc((100% - var(--zwc-gap-grid) * 3) / 4);
}

.zwc-related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(25px, 3vw, 40px);
  height: clamp(25px, 3vw, 40px);
  padding: 0;
  border: 1px solid var(--zwc-c-border-soft);
  border-radius: 50%;
  background: transparent;
  color: var(--zwc-color-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  z-index: 1;
}

.zwc-related-arrow:hover {
  background-color: var(--zwc-c-hover-veil);
  border-color: var(--zwc-c-border-strong);
}

.zwc-related-next {
  right: 0;
  text-decoration: none;
}

@media screen and (max-width: 1199px) {
  .zwc-plant-info {
    max-width: 397px;
  }

}

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media screen and (max-width: 991px) {
  .zwc-plant-gallery {
    flex-direction: column;
  }

  .zwc-plant-thumbs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
  }

  .zwc-plant-gallery {
    max-width: 55%;
  }

  .zwc-plant-info {
    max-width: 45%;
  }

  .zwc-related-list .zwc-story-card {
    width: calc((100% - var(--zwc-gap-grid)) / 2);
  }

  .zwc-related-carousel {
    max-width: 500px;
    margin: 0px auto;
    padding-right: 0px;
    flex-direction: column;
  }

  .zwc-related-arrow {
    position: unset;
    transform: unset;
  }

  .zwc-related .zwc-plant-leaf {
    --zwc-leaf-top: -6%;
  }
}

@media screen and (max-width: 767px) {
  .zwc-wrapper .content-wrap:not(.zwc-nav .content-wrap) {
    max-width: 480px;
  }

  .zwc-roots .content-wrap {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .zwc-banner-video {
    height: 40vh;
    object-fit: cover;
  }

  .zwc-plant-gallery,
  .zwc-plant-info {
    max-width: 100%;
  }

  .zwc-plant-detail .content-wrap {
    flex-direction: column-reverse;
  }

  .zwc-plant-detail .zwc-plant-leaf {
    display: none;
  }

  .zwc-plant-gallery {
    flex: unset;
  }

  .zwc-related .zwc-plant-leaf {
    background-size: 170%;
  }
}

@media screen and (max-width: 480px) {
  .zwc-related .zwc-plant-leaf {
    --zwc-leaf-h: 15%;
    --zwc-leaf-left: 10%;
    --zwc-leaf-w: 110%;
    background-size: 100%;
    --zwc-leaf-top: -4%;

  }
}

/* ==========================================================================
   Empty-state scene
   ========================================================================== */
.zwc-nores {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - clamp(60px, 1.8vw, 69px));
  overflow: hidden;
}

.zwc-nores .zwc-nores-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Gentle darkening for legible copy over the sunlit centre */
.zwc-nores::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 16, 8, 0.28);
  pointer-events: none;
}

.zwc-nores .content-wrap {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.zwc-nores .zwc-nores-inner {
  color: #ffffff;
  text-align: center;
}

/* Heading */
.zwc-nores-inner .zwc-nores-title {
  margin: 0;
  font-family: var(--zf-primary-regularserif);
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.2;
}

.zwc-nores-inner .zwc-nores-title span {
  display: block;
}

/* Supporting copy */
.zwc-nores-inner .zwc-nores-sub {
  margin: 14px 0 0;
  font-family: var(--primaryfont-regular);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
}

.zwc-nores-inner .zwc-nores-sub span {
  display: block;
}

/* Retry search field — outlined pill */
.zwc-nores-inner .zwc-nores-search {
  display: inline-flex;
  align-items: center;
  margin-top: 32px;
  padding: 11px 24px;
  border: 1px solid #656565;
  border-radius: 10px;
  background: #242424;
  color: #656565;
}

.zwc-nores-inner .zwc-nores-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-right: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  ;
  cursor: pointer;
}

.zwc-nores-inner .zwc-nores-search input {
  width: clamp(150px, 15.4vw, 240px);
  border: 0;
  background: transparent;
  font-family: var(--zf-primary-regularserif);
  font-size: 18.5px;
  color: currentColor;
  ;
}

.zwc-nores-inner .zwc-nores-search input::placeholder {
  color: currentColor;
  opacity: 0.9;
}

.zwc-nores-inner .zwc-nores-search input:focus {
  outline: none;
  box-shadow: none;
}

/* Remove the native clear (×) button on the search input */
.zwc-nores-inner .zwc-nores-search input::-webkit-search-cancel-button,
.zwc-nores-inner .zwc-nores-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.zwc-page-detail .zwc-roots {
  margin-top: clamp(40px, 6vw, 80px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */


/* Mobile */
@media screen and (max-width: 767px) {
  .zwc-nores-inner .zwc-nores-sub {
    margin-top: 12px;
  }

  .zwc-roots .content-wrap {
    justify-content: center;
    flex-direction: column;
    text-align: center;
  }

  .zwc-roots .zwc-banner-video {
    height: 40vh;
    object-fit: cover;
  }
}

/* ===== [6/6] 404 ===== */
/* ==========================================================================
   Rooted in Zoho — 404 (Page not found)
   Full-bleed forest scene with brand lockup, message and back-to-home link
   ========================================================================== */

/* Section shell — fills the viewport, foreground content vertically centered */
.zwc-404 {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

/* Full-bleed background scene */
.zwc-404 .zwc-404-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

/* Subtle darkening on the text side to keep the copy WCAG-legible */
.zwc-404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 20, 10, 0.55) 0%, rgba(12, 20, 10, 0.2) 38%, rgba(12, 20, 10, 0) 60%);
  pointer-events: none;
}

/* Width control only (per project convention) */
.zwc-404 .content-wrap {
  position: relative;
  z-index: 2;
  max-width: 1200px;
}

/* Foreground copy column */
.zwc-404 .zwc-404-content {
  color: #ffffff;
}


.zwc-404-content .zwc-404-brand img {
  vertical-align: bottom;
}

/* Error message */
.zwc-404-content .zwc-404-title {
  margin: clamp(25px, 2.8vw, 35px) 0 0;
  font-family: var(--zf-primary-regularserif);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.3;
}

/* Force the message onto two lines without a <br> */
.zwc-404-content .zwc-404-title .zwc-404-line {
  display: block;
}

/* Highlighted word */
.zwc-404-content .zwc-404-title .zwc-404-hl {
  color: #cddfb5;
}

/* Back to home link — outlined pill */
.zwc-404-content .zwc-404-home {
  background: #2C965B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(24px, 2.5vw, 36px);
  padding: 9px 24px;
  /* border: 0.75px solid #ffffff; */
  border-radius: 24px;
  font-family: var(--zf-primary-semibold);
  font-size: 16px;
  color: #ffffff;
  text-decoration: none;
}



/* ==========================================================================
   Responsive — type and spacing scale fluidly via clamp() above;
   the mobile media query switches to the distinct stacked layout
   (web/404 up top, centered copy anchored toward the bottom)
   ========================================================================== */

/* Mobile — stacked, centered, bottom-anchored composition */
@media screen and (max-width: 767px) {

  /* Anchor the copy toward the lower third of the viewport */
  .zwc-404 {
    align-items: flex-end;
  }

  /* Re-frame the scene so the web + 404 sit in the upper-centre */
  .zwc-404 .zwc-404-bg {
    object-position: 96% center;
  }

  /* Darken from the bottom up to keep the stacked copy legible */
  .zwc-404::before {
    background: linear-gradient(to top, rgba(12, 20, 10, 0.85) 0%, rgba(12, 20, 10, 0.5) 28%, rgba(12, 20, 10, 0) 55%);
  }

  .zwc-404 .zwc-404-content {
    padding: 0 24px 70px;
    text-align: center;
  }


  /* Centre the pill and grow it to the larger mobile size */
  .zwc-404-content .zwc-404-home {
    margin: clamp(24px, 6vw, 32px) auto 0;
    padding: 11px 30px;
    border-radius: 28px;
    font-size: 1rem;
  }
}