:root {
  --jc-bg: #f4f6f8;
  --jc-surface: #ffffff;
  --jc-surface-2: #eef2f5;
  --jc-ink: #1d2730;
  --jc-muted: #657381;
  --jc-line: #d8dee6;
  --jc-accent: #b42318;
  --jc-accent-2: #2f6f8f;
  --jc-accent-soft: #f8e8e6;
  --jc-radius: 8px;
  --jc-shadow: 0 14px 38px rgba(30, 41, 59, 0.08);
  --jc-container: 1180px;
  color: var(--jc-ink);
  background: var(--jc-bg);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background: var(--jc-bg);
  color: var(--jc-ink);
  line-height: 1.58;
  overflow-x: clip;
}

a {
  color: var(--jc-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: #8f1c13; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.loading { padding: 40px; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--jc-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-shell {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0 auto;
  max-width: var(--jc-container);
  min-height: 68px;
  padding: 12px 18px;
}

.site-brand {
  color: var(--jc-ink);
  font-size: 1.45rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand::before {
  background: var(--jc-accent);
  border-radius: 50%;
  content: "";
  display: inline-block;
  height: 12px;
  margin-right: 9px;
  width: 12px;
}

.top-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 4px;
  justify-content: flex-end;
  min-width: 0;
  overflow: visible;
}

.nav-node {
  display: inline-flex;
  position: relative;
}

.nav-node::after {
  bottom: -8px;
  content: "";
  display: none;
  height: 8px;
  left: 0;
  position: absolute;
  width: 100%;
}

.nav-node:has(.submenu)::after {
  display: block;
}

.nav-item {
  border-radius: 999px;
  color: var(--jc-ink);
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-item:hover,
.nav-item:focus,
.nav-item.active {
  background: var(--jc-surface-2);
  color: var(--jc-ink);
}

.submenu {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  box-shadow: var(--jc-shadow);
  display: none;
  left: 0;
  min-width: 0;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  width: max-content;
  z-index: 30;
}

.nav-node:hover > .submenu,
.nav-node:focus-within > .submenu,
.more-trigger:hover .submenu {
  display: block;
}

.subitem {
  color: var(--jc-ink);
  display: block;
  font-size: 0.84rem;
  padding: 5px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.subitem:hover,
.subitem:focus {
  background: var(--jc-surface-2);
  color: var(--jc-ink);
}

.nav-toggle {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  color: var(--jc-ink);
  display: none;
  font-weight: 700;
  min-height: 38px;
  padding: 7px 12px;
}

.site-search {
  display: flex;
  gap: 6px;
  margin-left: 4px;
}

.site-search input,
.site-search button,
.archive-tools input,
.archive-tools select,
.load-row button {
  border: 1px solid var(--jc-line);
  border-radius: 999px;
  font: inherit;
  min-height: 38px;
}

.site-search input {
  background: var(--jc-surface);
  padding: 0 12px;
  width: 160px;
}

.site-search button,
.load-row button {
  background: var(--jc-accent);
  border-color: var(--jc-accent);
  color: #fff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 12px;
}

.brand-strip {
  background: var(--jc-bg);
  border-top: 1px solid var(--jc-line);
  padding: 18px 18px;
}

.brand-inner {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  margin: 0 auto;
  max-width: var(--jc-container);
}

.brand-copy .eyebrow,
.eyebrow,
.meta {
  color: var(--jc-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wordmark {
  color: var(--jc-ink);
  display: block;
  font-size: clamp(1.75rem, 3.1vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 3px 0 8px;
  text-decoration: none;
}

.brand-copy p:not(.eyebrow) {
  color: #40505f;
  font-size: clamp(0.84rem, 1vw, 0.92rem);
  margin-bottom: 10px;
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.brand-actions a {
  border: 1px solid var(--jc-line);
  border-radius: 999px;
  color: var(--jc-ink);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 10px;
  text-decoration: none;
}

.brand-actions a:first-child {
  background: var(--jc-accent);
  border-color: var(--jc-accent);
  color: #fff;
}

.social-shortcuts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.social-link {
  align-items: center;
  background: var(--jc-surface);
  border: 2px solid var(--jc-line);
  border-radius: 999px;
  color: var(--jc-ink);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 800;
  gap: 6px;
  min-height: 28px;
  padding: 3px 9px 3px 4px;
  text-decoration: none;
}

.social-link:hover,
.social-link:focus {
  border-color: currentColor;
  color: var(--jc-ink);
  transform: translateY(-1px);
}

.social-icon {
  align-items: center;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.54rem;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.instagram .social-icon { background: #c13584; }
.facebook .social-icon { background: #4267b2; font-family: Georgia, serif; font-size: 0.82rem; }
.youtube .social-icon { background: #b42318; }
.site-cd .social-icon { background: #4b789b; font-size: 0.5rem; }
.site-md .social-icon { background: #5b5a72; font-size: 0.5rem; }

.brand-logos {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 0.75fr 1.05fr 0.75fr;
}

.logo-link {
  border-radius: 50%;
  display: block;
  text-decoration: none;
}

.logo-link:hover,
.logo-link:focus {
  outline: 3px solid var(--jc-accent-soft);
  outline-offset: 4px;
}

.logo,
.partner-logo {
  aspect-ratio: 1;
  background: var(--jc-surface);
  border: 8px solid #fff;
  border-radius: 50%;
  box-shadow: var(--jc-shadow);
  object-fit: cover;
  width: 100%;
}

.partner-logo { opacity: 0.82; }

.chip-band {
  background: var(--jc-bg);
  border-bottom: 1px solid var(--jc-line);
  border-top: 1px solid var(--jc-line);
  padding: 16px 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--jc-container);
}

.category-chip {
  background: var(--jc-surface-2);
  border: 1px solid var(--jc-line);
  border-radius: 999px;
  color: #3d4b57;
  display: inline-flex;
  font-size: 0.9rem;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.category-chip:hover,
.category-chip:focus {
  background: var(--jc-accent-soft);
  border-color: var(--jc-accent);
  color: var(--jc-accent);
}

main {
  margin: 0 auto;
  max-width: var(--jc-container);
  min-height: calc(100vh - 280px);
  padding: 0 18px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  padding: 42px 0;
}

.hero-copy {
  background: transparent;
  border: 0;
  padding: 0;
}

.hero h1,
.page-title h1,
.archive-tools h1 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 5px 0 10px;
}

.lede,
.page-title p,
.archive-tools p {
  color: #40505f;
  font-size: clamp(0.95rem, 1.25vw, 1.04rem);
}

.stats,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stats span,
.tags span {
  background: var(--jc-surface-2);
  border: 1px solid var(--jc-line);
  border-radius: 999px;
  color: #3d4b57;
  display: inline-flex;
  font-size: 0.84rem;
  gap: 6px;
  padding: 5px 9px;
}

.section-head,
.page-title,
.archive-tools {
  align-items: end;
  border-bottom: 1px solid var(--jc-line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 34px 0 16px;
}

.home-summary {
  align-items: center;
  padding-top: 30px;
}

.home-summary h1 {
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.home-summary p:not(.eyebrow) {
  color: #40505f;
  margin: 0;
  max-width: 760px;
}

.archive-tools {
  align-items: center;
  background: var(--jc-surface);
  border-bottom: 1px solid var(--jc-line);
  margin: 0 -18px;
  padding: 14px 18px;
  position: sticky;
  top: 69px;
  z-index: 10;
}

.archive-tools input,
.archive-tools select {
  background: var(--jc-surface);
  min-height: 44px;
  padding: 0 14px;
}

.archive-tools input {
  flex: 1 1 260px;
  min-width: 0;
}

.load-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 0 0 56px;
}

#lazySentinel { height: 1px; }

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  padding: 28px 0 56px;
}

.category-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 28px 0 70px;
}

.category-tile {
  align-items: center;
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  color: var(--jc-ink);
  display: flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  min-height: 84px;
  padding: 16px;
  text-align: center;
  text-decoration: none;
}

.category-tile:hover {
  background: var(--jc-accent-soft);
  border-color: var(--jc-accent);
  color: var(--jc-accent);
}

.card {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  height: 100%;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.card:hover {
  box-shadow: var(--jc-shadow);
  transform: translateY(-2px);
}

.wide-card {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
}

.thumb {
  aspect-ratio: 4 / 3;
  background: var(--jc-surface-2);
  border-bottom: 1px solid var(--jc-line);
  display: block;
  overflow: hidden;
}

.thumb img,
.gallery img,
.post-hero {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 12px 14px 14px;
}

.card h3 {
  border-bottom: 1px solid var(--jc-line);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 8px -14px 10px;
  padding: 0 14px 10px;
}

.card h3 a {
  color: var(--jc-ink);
  text-decoration: none;
}

.card p {
  color: var(--jc-muted);
  display: -webkit-box;
  font-size: 0.94rem;
  line-height: 1.45;
  margin-bottom: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.post-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 42px 0 70px;
}

.post-layout aside {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  display: grid;
  gap: 14px;
  order: 2;
  padding: 16px;
  position: sticky;
  top: 92px;
}

.post-main { min-width: 0; }

.source,
.subscribe-panel a,
.subscribe-link {
  color: var(--jc-accent);
  font-weight: 800;
}

.post-hero {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  display: block;
  height: auto;
  margin-bottom: 22px;
  max-height: 520px;
  object-fit: contain;
}

.article-copy {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  font-size: 1.05rem;
  margin: 22px 0;
  padding: clamp(18px, 3vw, 28px);
}

.article-copy h1:first-child {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.article-copy h2 {
  border-top: 1px solid var(--jc-line);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 28px 0 12px;
  padding-top: 22px;
}

.article-copy p {
  line-height: 1.75;
  margin-bottom: 14px;
  white-space: pre-wrap;
}

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  margin-bottom: 56px;
}

.gallery img {
  aspect-ratio: 4 / 3;
  background: var(--jc-surface-2);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
}

.gallery-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  display: block;
  padding: 0;
  text-align: inherit;
}

.gallery-button img {
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  box-shadow: var(--jc-shadow);
  transform: translateY(-2px);
}

.modal-open {
  overflow: hidden;
}

.image-modal {
  align-items: center;
  background: rgba(13, 20, 28, 0.88);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 54px 24px 24px;
  position: fixed;
  z-index: 100;
}

.image-modal[hidden] {
  display: none;
}

.modal-image {
  background: #fff;
  border-radius: var(--jc-radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  max-height: calc(100vh - 96px);
  max-width: min(1200px, 96vw);
  object-fit: contain;
}

.modal-close {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: 999px;
  color: var(--jc-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 36px;
  padding: 6px 14px;
  position: fixed;
  right: 24px;
  top: 18px;
}

.modal-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--jc-line);
  border-radius: 50%;
  color: var(--jc-ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 2.4rem;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  line-height: 1;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
}

.modal-nav:hover,
.modal-nav:focus {
  background: var(--jc-accent);
  border-color: var(--jc-accent);
  color: #fff;
}

.modal-prev { left: 24px; }
.modal-next { right: 24px; }

.local-video,
.video-embed {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--jc-line);
  display: block;
  width: 100%;
}

.video-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  margin: 18px 0 34px;
}

.video-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  padding: 28px 0 70px;
}

.video-card {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  overflow: hidden;
}

.video-play-card {
  aspect-ratio: 16 / 9;
  background: #111;
  border: 0;
  cursor: pointer;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.video-play-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: opacity 160ms ease, transform 160ms ease;
  width: 100%;
}

.video-play-card:hover img,
.video-play-card:focus-visible img {
  opacity: 1;
  transform: scale(1.02);
}

.play-badge {
  align-items: center;
  background: var(--jc-accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 6px;
  left: 50%;
  min-height: 38px;
  padding: 8px 16px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.play-badge::before {
  content: "▶";
  font-size: 0.75rem;
}

.video-card h3 {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  padding: 10px 12px;
}

.subscribe-panel {
  align-items: center;
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 22px;
  padding: 18px;
}

.subscribe-panel p { margin: 0; }

.download-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 34px;
}

.download-list a {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  color: var(--jc-ink);
  display: block;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.download-list a:hover {
  border-color: var(--jc-accent);
  color: var(--jc-accent);
}

.manual-section {
  margin: 28px 0 48px;
}

.manual-section h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.manual-category {
  margin-top: 20px;
}

.manual-category h3 {
  color: var(--jc-muted);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.manual-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-link {
  background: var(--jc-surface);
  border: 1px solid var(--jc-line);
  border-radius: var(--jc-radius);
  color: var(--jc-ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 64px;
  padding: 10px 12px;
  text-decoration: none;
}

.manual-link:hover {
  border-color: var(--jc-accent);
  color: var(--jc-accent);
}

.manual-link span {
  font-weight: 700;
  line-height: 1.25;
}

.manual-link small {
  color: var(--jc-muted);
  font-size: 0.78rem;
}

.feature-gallery {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  padding-top: 24px;
}

footer {
  align-items: center;
  background: var(--jc-surface);
  border-top: 1px solid var(--jc-line);
  color: var(--jc-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 24px 18px;
}

footer a { color: var(--jc-accent); }

footer .social-shortcuts {
  flex-basis: 100%;
  justify-content: center;
  margin-top: 0;
}

@media (max-width: 1040px) {
  .nav-shell { flex-wrap: wrap; }
  .top-nav {
    flex-basis: 100%;
    justify-content: flex-start;
    order: 3;
  }
  .site-search { margin-left: auto; }
  .brand-inner,
  .hero,
  .wide-card,
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-layout aside {
    order: 0;
    position: static;
  }
  .brand-logos {
    justify-self: center;
    max-width: 420px;
    width: 100%;
  }
  .manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-shell {
    align-items: stretch;
    min-height: 0;
  }
  .site-brand {
    align-self: center;
    flex: 1;
  }
  .nav-toggle { display: inline-flex; }
  .top-nav {
    display: none;
    flex-direction: column;
    order: 4;
    width: 100%;
  }
  .top-nav.open { display: flex; }
  .nav-node,
  .nav-item {
    width: 100%;
  }
  .submenu {
    box-shadow: none;
    margin: 2px 0 6px 12px;
    position: static;
    width: calc(100% - 12px);
  }
  .site-search {
    order: 3;
    width: 100%;
  }
  .site-search input { flex: 1; width: auto; }
  .brand-strip { padding: 22px 14px; }
  .brand-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  main { padding: 0 14px; }
  .archive-tools {
    margin: 0 -14px;
    position: static;
  }
  .section-head,
  .page-title,
  .archive-tools,
  .subscribe-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .modal-nav {
    height: 42px;
    width: 42px;
  }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
  .modal-close {
    right: 10px;
    top: 10px;
  }
}
