/* Jubilee Cell — components added by the theme.
   The handoff CSS is left untouched; anything WordPress needs that the static
   markup did not have lives here. Same tokens, same rules. */

/* ---------------------------------------------------------------- Layout */
.jc-main { display: block; }
.jc-main:focus { outline: none; }

/* .jc-section--cyan50 and .jc-split both already exist in the handoff CSS.
   Nothing to add here — redefining them is what caused the nested-grid
   collapse in the What We Do section. */

/* ------------------------------------------------------- Photo overlay card */
.jc-photo__card-label { display: block; margin: 0; font-size: 11px; }

.jc-photo__card-value {
  display: block;
  margin-top: 2px;
  font-family: var(--jc-font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--jc-petrol);
}

.jc-photo__card-figure {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--jc-petrol);
  font-variant-numeric: tabular-nums;
}

.jc-photo__card-note { display: block; font-size: 12px; color: var(--jc-slate); }

.jc-photo__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jc-cyan);
  box-shadow: 0 0 0 4px rgba(105, 203, 231, 0.28);
  flex: none;
}

/* ------------------------------------------------------------ Brand wall */
/* Brand tiles carry greyscale(1) and opacity .72 so colour logos read as a
   uniform wall. A text fallback has no colour to drain, so that treatment just
   makes it look faded and fails contrast — these opt out. */
.jc-brand--text {
  filter: none;
  opacity: 1;
}

.jc-brand__text {
  font-family: var(--jc-font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--jc-slate);
  white-space: nowrap;
}

.jc-brand--text:hover .jc-brand__text { color: var(--jc-petrol); }

/* --------------------------------------------------------- Solution card */
/* Stretched link: the whole card is clickable, but only one link exists in
   the accessibility tree, so a screen reader hears one target, not two. */
.jc-solution { position: relative; }

.jc-solution__link {
  color: inherit;
  text-decoration: none;
}

.jc-solution__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--jc-radius-card);
}

.jc-solution__link:focus-visible::after {
  outline: 3px solid var(--jc-focus);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- Serve tiles */
.jc-serve { list-style: none; margin: 0; padding: 0; }

.jc-serve__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 18px 10px;
  color: var(--jc-petrol);
  text-decoration: none;
  border-radius: var(--jc-radius-card);
  transition: background var(--jc-dur-xs) var(--jc-ease);
}

.jc-serve__link:hover { background: rgba(255, 255, 255, 0.6); }

.jc-serve__link svg {
  width: 40px;
  height: 40px;
  stroke: var(--jc-deep-cyan);
  stroke-width: 1.4;
  fill: none;
}

/* ------------------------------------------------------------- Carousel */
.jc-quote__viewport { position: relative; min-height: 210px; }
.jc-quote__slide[hidden] { display: none; }

.jc-quote__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  color: var(--jc-petrol);
}

.jc-quote__role { display: block; font-size: 13px; color: var(--jc-slate); }

.jc-avatar--img { padding: 0; overflow: hidden; }
.jc-avatar--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ------------------------------------------------------------------ CTA */
.jc-cta__heading {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: var(--jc-tracking-tight);
}

@media (max-width: 768px) {
  .jc-cta__heading { font-size: 32px; }
}

.jc-cta__lead { color: var(--jc-petrol); opacity: 0.78; margin-bottom: 40px; }

.jc-btn--on-cyan {
  background: var(--jc-white);
  color: var(--jc-petrol);
  box-shadow: var(--jc-shadow-card);
}

.jc-btn--on-cyan:hover { background: var(--jc-mist); }

/* --------------------------------------------------------------- Header */
.jc-nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jc-nav__item { position: relative; }

.jc-nav__submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 230px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: var(--jc-white);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  box-shadow: var(--jc-shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--jc-dur-xs) var(--jc-ease),
              transform var(--jc-dur-xs) var(--jc-ease),
              visibility var(--jc-dur-xs);
  z-index: 60;
}

/* Opens on hover for mouse users AND on focus/click for everyone else. */
.jc-nav__item--has-children:hover .jc-nav__submenu,
.jc-nav__item--has-children:focus-within .jc-nav__submenu,
.jc-nav__item.is-expanded .jc-nav__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.jc-nav__submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--jc-petrol);
  text-decoration: none;
  border-radius: var(--jc-radius-button);
}

.jc-nav__submenu a:hover { background: var(--jc-cyan-50); }

.jc-nav__disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--jc-slate);
  cursor: pointer;
}

.jc-nav__disclosure svg { width: 10px; height: 7px; transition: transform var(--jc-dur-xs) var(--jc-ease); }
.jc-nav__disclosure[aria-expanded="true"] svg { transform: rotate(180deg); }

.jc-logo-img { display: block; height: 40px; width: auto; }

/* --------------------------------------------------------- Search panel */
.jc-search-panel {
  padding: 24px 0 30px;
  background: var(--jc-mist);
  border-top: 1px solid var(--jc-border);
}

.jc-search-panel .search-form { display: flex; gap: 10px; max-width: 620px; }

.jc-search-panel input[type="search"] {
  flex: 1;
  height: 52px;
  padding: 0 18px;
  font-family: var(--jc-font-body);
  font-size: 16px;
  color: var(--jc-petrol);
  background: var(--jc-white);
  border: 1px solid var(--jc-border-input);
  border-radius: var(--jc-radius-button);
}

.jc-search-panel button {
  height: 52px;
  padding: 0 26px;
  font-family: var(--jc-font-body);
  font-weight: 600;
  color: var(--jc-petrol);
  background: var(--jc-cyan);
  border: 0;
  border-radius: var(--jc-radius-button);
  cursor: pointer;
}

/* ---------------------------------------------------------- Mobile menu */
.jc-nav__mobile[hidden] { display: none; }
.jc-nav__mobile-list { list-style: none; margin: 0; padding: 0; }

.jc-nav__mobile-list a {
  display: block;
  padding: 16px 0;
  min-height: 48px;
  font-family: var(--jc-font-display);
  font-size: 18px;
  color: var(--jc-petrol);
  text-decoration: none;
  border-bottom: 1px solid var(--jc-border);
}

.jc-nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
}

body.jc-menu-open { overflow: hidden; }

/* -------------------------------------------------------------- Footer */
.jc-footer__address { font-style: normal; }
.jc-footer__postal { display: block; opacity: 0.8; font-size: 14px; line-height: 1.6; }
.jc-footer__newscopy { font-size: 14px; line-height: 1.6; opacity: 0.8; margin: 0 0 18px; }
.jc-footer__notice { margin-top: 12px; font-size: 13px; color: var(--jc-footer-link); }
.jc-footer__copy { font-size: 13px; opacity: 0.75; }

/* Honeypot — hidden from everyone including screen readers, since it is a
   trap for bots and must never be presented as a real field. */
.jc-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- Breadcrumbs */
.jc-breadcrumbs { padding: 22px 0 0; }

.jc-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--jc-slate);
}

.jc-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--jc-muted); }
.jc-breadcrumbs a { color: var(--jc-deep-cyan); text-decoration: none; }
.jc-breadcrumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------- Generic pages */
.jc-page { padding: 72px 0 var(--jc-section-pad); }

.jc-page__header { max-width: 760px; margin-bottom: 48px; }

.jc-prose { max-width: 760px; font-size: 17px; line-height: 1.75; color: var(--jc-slate); }
.jc-prose h2 { font-family: var(--jc-font-display); font-size: var(--jc-h2); color: var(--jc-petrol); margin: 48px 0 18px; letter-spacing: var(--jc-tracking-heading); }
.jc-prose h3 { font-family: var(--jc-font-display); font-size: var(--jc-h3); color: var(--jc-petrol); margin: 36px 0 14px; }
.jc-prose a { color: var(--jc-deep-cyan); }
.jc-prose ul, .jc-prose ol { padding-left: 24px; }
.jc-prose li { margin-bottom: 10px; }
.jc-prose blockquote {
  margin: 32px 0;
  padding: 20px 26px;
  background: var(--jc-cyan-50);
  border-left: 3px solid var(--jc-cyan);
  border-radius: 0 var(--jc-radius-button) var(--jc-radius-button) 0;
}
.jc-prose img { max-width: 100%; height: auto; border-radius: var(--jc-radius-card); }
.jc-prose table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.jc-prose th, .jc-prose td { padding: 12px 14px; border: 1px solid var(--jc-border); text-align: left; }
.jc-prose th { background: var(--jc-cyan-50); font-weight: 600; color: var(--jc-petrol); }

/* --------------------------------------------------------- Trade notice */
.jc-trade-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--jc-cyan-50);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  font-size: 14px;
  color: var(--jc-petrol);
}

.jc-price-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--jc-deep-cyan);
}

/* ------------------------------------------------------- Utility bar */
.jc-utility {
  background: var(--jc-cyan-50);
  border-bottom: 1px solid var(--jc-border);
  font-size: 13px;
}

.jc-utility__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--jc-container);
  margin: 0 auto;
  padding: 10px var(--jc-gutter);
  color: var(--jc-petrol);
}

.jc-utility__rep { color: var(--jc-slate); }
.jc-utility__rep a { color: var(--jc-deep-cyan); }

.jc-cart__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--jc-coral);
  color: #fff;
  border-radius: var(--jc-radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* -------------------------------------------------------------- Pager */
.jc-pagination { display: flex; gap: 8px; justify-content: center; padding: 48px 0 0; }
.jc-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-button);
  color: var(--jc-petrol);
  text-decoration: none;
}
.jc-pagination .page-numbers.current { background: var(--jc-cyan); border-color: var(--jc-cyan); font-weight: 700; }

/* --------------------------------------------------------------- 404 */
.jc-404 { padding: 120px 0; text-align: center; }
.jc-404__code { font-family: var(--jc-font-display); font-size: 96px; color: var(--jc-cyan); line-height: 1; }

/* ------------------------------------------------- Inner page layouts */
.jc-detail__head {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 28px;
}

@media (max-width: 900px) {
  .jc-detail__head { grid-template-columns: 1fr; gap: 40px; }
}

.jc-detail__badge { margin-bottom: 24px; }
.jc-detail__photo { margin: 0; aspect-ratio: 4/3.2; }

.jc-related {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--jc-border);
}

.jc-related .jc-h3 { margin: 0 0 28px; }

/* Brand index: a scannable wall, not a list of prose cards. */
.jc-brand-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 16px;
}

.jc-brand-index__item {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 18px;
  background: var(--jc-white);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  text-decoration: none;
  transition: border-color var(--jc-dur-xs) var(--jc-ease),
              box-shadow var(--jc-dur-xs) var(--jc-ease),
              transform var(--jc-dur-xs) var(--jc-ease);
}

.jc-brand-index__item:hover {
  border-color: var(--jc-cyan);
  box-shadow: var(--jc-shadow-card);
  transform: translateY(-3px);
}

.jc-brand-index__item img { max-width: 100%; height: auto; }

/* ---------------------------------------------- Generic page structure */
/* The intro band is tighter than a full section — it is a header, not a
   content block, and 120px above a breadcrumb reads as a mistake. */
.jc-page__intro { padding-top: 48px; padding-bottom: 56px; }

.jc-page__head { max-width: 820px; margin-top: 22px; }
.jc-page__head .jc-h2 { margin: 0 0 18px; }
.jc-page__head .jc-lead { margin: 0; }

.jc-page__hero { margin-top: -28px; position: relative; z-index: 1; }

/* A short page should not leave a void above the footer. */
.jc-page__intro + .jc-section,
.jc-page__hero + .jc-section { min-height: 30vh; }

.jc-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--jc-border);
}

@media (max-width: 640px) {
  .jc-postnav { grid-template-columns: 1fr; }
}

.jc-postnav a {
  display: grid;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  color: var(--jc-petrol);
  text-decoration: none;
  transition: border-color var(--jc-dur-xs) var(--jc-ease);
}

.jc-postnav a:hover { border-color: var(--jc-cyan); }

/* Utility bar sits under the fixed header; keep it clear of the nav. */
.jc-utility { position: relative; z-index: 40; }

/* ---------------------------------------------------------------- FAQ */
.jc-faq__item { border-bottom: 1px solid var(--jc-border); }
.jc-faq__q { margin: 0; }

.jc-faq__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--jc-font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--jc-petrol);
  cursor: pointer;
}

.jc-faq__toggle:hover { color: var(--jc-deep-cyan); }

/* Plus/minus drawn in CSS so it never depends on an icon font loading. */
.jc-faq__sign {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.jc-faq__sign::before,
.jc-faq__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--jc-deep-cyan);
  transform: translateY(-50%);
  transition: transform var(--jc-dur-xs) var(--jc-ease);
}

.jc-faq__sign::after { transform: translateY(-50%) rotate(90deg); }
.jc-faq__toggle[aria-expanded="true"] .jc-faq__sign::after { transform: translateY(-50%) rotate(0deg); }

.jc-faq__a { padding: 0 0 28px; }
.jc-faq__a[hidden] { display: none; }

/* Highlight unfilled facts for logged-in editors only, so a placeholder that
   reached production is impossible to walk past. */
.jc-placeholder-flag {
  background: #FCF3E6;
  border-bottom: 2px solid #DBA617;
  padding: 0 3px;
}

/* ------------------------------------------------- Placeholder imagery */
.jc-photo--placeholder { position: relative; }

/* The caption is only shown to signed-in editors. A visitor sees a plain
   image; the person who can fix it sees exactly what to do. */
.jc-photo__placeholder-note { display: none; }

body.logged-in .jc-photo__placeholder-note {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(11, 46, 56, 0.86);
  color: #fff;
  font-family: var(--jc-font-body);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

/* -------------------------------------------- Prose cards for pages */
/* About's values and What We Carry's categories are authored as column
   blocks so an editor can rearrange them; these make them read as cards
   rather than as bare stacked text. */
.jc-prose .wp-block-columns { gap: 24px; margin: 40px 0; }

.jc-prose .wp-block-column {
  padding: 28px 30px;
  background: var(--jc-white);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  box-shadow: var(--jc-shadow-card);
}

.jc-prose .wp-block-column > :first-child { margin-top: 0; }
.jc-prose .wp-block-column > :last-child { margin-bottom: 0; }

.jc-prose .wp-block-column h3 {
  font-family: var(--jc-font-display);
  font-size: var(--jc-h3);
  margin: 0 0 10px;
}

/* --------------------------------------------- Channel page sections */
.jc-do__grid,
.jc-cats__grid {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}

.jc-do__grid { grid-template-columns: repeat(3, 1fr); }
.jc-cats__grid { grid-template-columns: repeat(4, 1fr); }

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

@media (max-width: 768px) {
  .jc-do__grid, .jc-cats__grid { grid-template-columns: 1fr; }
}

.jc-do__item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 24px 26px;
  background: var(--jc-white);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
}

.jc-do__item svg { flex: none; width: 20px; height: 20px; stroke: var(--jc-deep-cyan); stroke-width: 2; fill: none; margin-top: 2px; }
.jc-do__item p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--jc-slate); }

.jc-cat__card {
  background: var(--jc-white);
  border: 1px solid var(--jc-border);
  border-radius: var(--jc-radius-card);
  overflow: hidden;
}

.jc-cat__card figure { margin: 0; aspect-ratio: 4/3; }
.jc-cat__card figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jc-cat__body { padding: 20px 22px; }
.jc-cat__body h3 { font-family: var(--jc-font-display); font-size: 17px; margin: 0 0 8px; color: var(--jc-petrol); }
.jc-cat__body p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--jc-slate); }

.jc-proof {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.jc-proof blockquote {
  font-family: var(--jc-font-display);
  font-size: var(--jc-quote);
  line-height: 1.35;
  letter-spacing: var(--jc-tracking-heading);
  color: var(--jc-petrol);
  margin: 0 0 28px;
}
