:root {
  --jsc-green: #173f32;
  --jsc-green-2: #275d48;
  --jsc-cream: #f7f3ea;
  --jsc-beige: #efe8db;
  --jsc-white: #ffffff;
  --jsc-text: #1f2a24;
  --jsc-body: #4b514c;
  --jsc-muted: #777a75;
  --jsc-border: #e4ddd0;
  --jsc-orange: #d96a3a;
  --jsc-orange-hover: #c85c30;
  --jsc-shadow: 0 12px 34px rgba(31, 42, 36, 0.06);
}

body.single-post,
body.archive,
body.category,
body.tag,
body.search,
body.error404 {
  background: var(--jsc-cream);
  color: var(--jsc-body);
}

.jsc-site,
.jsc-site * {
  box-sizing: border-box;
}

.jsc-container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.jsc-article .jsc-container {
  max-width: 780px;
}

.jsc-breadcrumb {
  margin: 22px 0 18px;
  color: var(--jsc-muted);
  font-size: 13px;
}

.jsc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jsc-breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: var(--jsc-muted);
}

.jsc-breadcrumb a {
  color: var(--jsc-green);
  text-decoration: none;
}

.jsc-article-header,
.jsc-article-body,
.jsc-category-hero,
.jsc-search-hero,
.jsc-error-card,
.jsc-empty {
  background: var(--jsc-white);
  border: 1px solid var(--jsc-border);
  border-radius: 16px;
  box-shadow: var(--jsc-shadow);
}

.jsc-article-header {
  padding: clamp(24px, 5vw, 44px);
  margin-bottom: 28px;
}

.jsc-article-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  color: var(--jsc-muted);
  font-size: 13px;
}

.jsc-category-label,
.jsc-post-card__label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--jsc-green);
  color: var(--jsc-white);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 8px 12px;
  text-decoration: none;
}

.jsc-article-title {
  margin: 18px 0 24px;
  color: var(--jsc-green);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: 0;
}

.jsc-article-eyecatch {
  margin: 0;
}

.jsc-article-eyecatch img,
.jsc-post-card__image img,
.jsc-category-hero img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.jsc-article-eyecatch img {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}

.jsc-article-body {
  padding: clamp(24px, 5vw, 48px);
  color: var(--jsc-body);
  font-size: 16.5px;
  line-height: 1.9;
}

.jsc-article-body > *:first-child {
  margin-top: 0;
}

.jsc-article-body > *:last-child {
  margin-bottom: 0;
}

.jsc-article-body h2,
.jsc-article-body h3,
.jsc-article-body h4 {
  color: var(--jsc-green);
  line-height: 1.5;
  letter-spacing: 0;
}

.jsc-article-body h2 {
  margin: 48px 0 20px;
  padding: 18px 20px 18px 24px;
  border-left: 5px solid var(--jsc-green);
  border-radius: 14px;
  background: var(--jsc-beige);
  font-size: clamp(23px, 3vw, 30px);
}

.jsc-article-body h3 {
  margin: 36px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--jsc-border);
  font-size: clamp(20px, 2.4vw, 24px);
}

.jsc-article-body h4 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.jsc-article-body a {
  color: var(--jsc-green-2);
  text-decoration-color: rgba(39, 93, 72, 0.35);
  text-underline-offset: 3px;
}

.jsc-article-body ul,
.jsc-article-body ol {
  margin: 20px 0;
  padding-left: 1.4em;
}

.jsc-article-body li + li {
  margin-top: 8px;
}

.jsc-article-body blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 5px solid var(--jsc-green);
  border-radius: 14px;
  background: var(--jsc-beige);
  color: var(--jsc-body);
}

.jsc-article-body figure {
  margin: 28px 0;
}

.jsc-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.jsc-article-body figcaption,
.jsc-article-body .wp-caption-text {
  margin-top: 8px;
  color: var(--jsc-muted);
  font-size: 13px;
  text-align: center;
}

.jsc-article-body table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--jsc-border);
  border-radius: 14px;
  background: var(--jsc-white);
}

.jsc-article-body th {
  background: var(--jsc-green);
  color: var(--jsc-white);
  font-weight: 700;
}

.jsc-article-body th,
.jsc-article-body td {
  padding: 14px 16px;
  border: 1px solid var(--jsc-border);
  text-align: left;
  vertical-align: top;
}

.jsc-article-body .wp-block-table,
.jsc-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jsc-article-body > table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.jsc-note,
.jsc-point,
.jsc-inline-cta,
.jsc-checklist {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--jsc-border);
  border-radius: 16px;
}

.jsc-note {
  background: var(--jsc-beige);
}

.jsc-point,
.jsc-checklist {
  background: #fffaf2;
  border-color: rgba(217, 106, 58, 0.28);
}

.jsc-checklist {
  list-style: none;
  padding-left: 22px;
}

.jsc-checklist li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--jsc-orange);
  font-weight: 800;
}

.jsc-inline-cta {
  background: var(--jsc-green);
  color: var(--jsc-white);
}

.jsc-button,
.jsc-article-body .jsc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.jsc-button--primary {
  border: 1px solid var(--jsc-orange);
  background: var(--jsc-orange);
  color: var(--jsc-white);
}

.jsc-button--primary:hover {
  border-color: var(--jsc-orange-hover);
  background: var(--jsc-orange-hover);
  color: var(--jsc-white);
}

.jsc-button--secondary {
  border: 1px solid var(--jsc-green);
  background: var(--jsc-white);
  color: var(--jsc-green);
}

.jsc-button--secondary:hover {
  background: var(--jsc-beige);
  color: var(--jsc-green);
}

.jsc-article-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.jsc-article-cta__card {
  padding: 26px;
  border: 1px solid var(--jsc-border);
  border-radius: 16px;
  background: var(--jsc-white);
  box-shadow: var(--jsc-shadow);
}

.jsc-article-cta__card--primary {
  background: linear-gradient(135deg, rgba(23, 63, 50, 0.96), rgba(39, 93, 72, 0.96)), var(--jsc-green);
  color: var(--jsc-white);
}

.jsc-article-cta__eyebrow,
.jsc-eyebrow {
  margin: 0 0 8px;
  color: var(--jsc-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.jsc-article-cta__title {
  margin: 0 0 12px;
  color: inherit;
  font-size: 22px;
  line-height: 1.45;
}

.jsc-article-cta p {
  margin: 0 0 18px;
  line-height: 1.8;
}

.jsc-related {
  margin: 44px 0 20px;
}

.jsc-section-heading h2 {
  margin: 0 0 18px;
  color: var(--jsc-green);
  font-size: 26px;
}

.jsc-related__grid,
.jsc-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.jsc-post-card {
  min-width: 0;
}

.jsc-post-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--jsc-border);
  border-radius: 16px;
  background: var(--jsc-white);
  color: var(--jsc-body);
  text-decoration: none;
  box-shadow: var(--jsc-shadow);
}

.jsc-post-card__image img {
  aspect-ratio: 16 / 10;
}

.jsc-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.jsc-post-card__title {
  color: var(--jsc-green);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.55;
}

.jsc-post-card__excerpt {
  color: var(--jsc-body);
  font-size: 14px;
  line-height: 1.75;
}

.jsc-post-card__meta {
  margin-top: auto;
  color: var(--jsc-muted);
  font-size: 13px;
}

.jsc-category-hero,
.jsc-search-hero,
.jsc-error-card,
.jsc-empty {
  padding: clamp(24px, 5vw, 44px);
  margin: 24px 0 28px;
}

.jsc-category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.jsc-category-hero h1,
.jsc-search-hero h1,
.jsc-error-card h1 {
  margin: 0 0 14px;
  color: var(--jsc-green);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.35;
}

.jsc-category-hero p,
.jsc-search-hero p,
.jsc-error-card p,
.jsc-empty p {
  color: var(--jsc-body);
  line-height: 1.8;
}

.jsc-category-hero img {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
}

.jsc-count {
  display: inline-flex;
  margin-top: 10px;
  color: var(--jsc-muted);
  font-size: 14px;
}

.jsc-topic-nav,
.jsc-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.jsc-topic-nav a,
.jsc-link-grid a {
  display: inline-flex;
  border: 1px solid var(--jsc-border);
  border-radius: 999px;
  background: var(--jsc-white);
  color: var(--jsc-green);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
}

.jsc-search-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.jsc-search-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--jsc-border);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--jsc-white);
  color: var(--jsc-text);
}

.jsc-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 34px 0;
}

.jsc-pagination .page-numbers {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jsc-border);
  border-radius: 12px;
  background: var(--jsc-white);
  color: var(--jsc-green);
  padding: 8px 12px;
  text-decoration: none;
}

.jsc-pagination .current {
  border-color: var(--jsc-green);
  background: var(--jsc-green);
  color: var(--jsc-white);
}

.jsc-sidebar {
  display: grid;
  gap: 16px;
  color: var(--jsc-body);
}

.jsc-sidebar-card {
  padding: 20px;
  border: 1px solid var(--jsc-border);
  border-radius: 16px;
  background: var(--jsc-white);
  box-shadow: var(--jsc-shadow);
}

.jsc-sidebar-card h2 {
  margin: 0 0 10px;
  color: var(--jsc-green);
  font-size: 18px;
}

.jsc-sidebar-card p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
}

.jsc-sidebar-list,
.jsc-sidebar-ranking {
  margin: 0;
  padding: 0;
  list-style: none;
}

.jsc-sidebar-list li + li,
.jsc-sidebar-ranking li + li {
  margin-top: 10px;
}

.jsc-sidebar-list a,
.jsc-sidebar-ranking a {
  color: var(--jsc-green);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.jsc-sidebar-list .is-active a {
  color: var(--jsc-orange);
}

.jsc-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.toc,
.toc-container,
.toc-box,
#toc_container {
  border: 1px solid var(--jsc-border) !important;
  border-radius: 16px !important;
  background: var(--jsc-white) !important;
  box-shadow: var(--jsc-shadow);
}

.toc-title,
#toc_container .toc_title {
  color: var(--jsc-green) !important;
  font-weight: 800;
}

@media (min-width: 1024px) {
  body.single-post #content-in {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
    gap: 32px;
  }

  body.single-post #main {
    width: min(100%, 780px);
  }

  body.single-post #sidebar {
    width: 300px;
  }

  .jsc-sidebar {
    position: sticky;
    top: 24px;
  }
}

@media (max-width: 900px) {
  .jsc-related__grid,
  .jsc-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jsc-category-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jsc-container {
    width: min(100% - 24px, 1120px);
  }

  .jsc-article-cta,
  .jsc-related__grid,
  .jsc-post-grid {
    grid-template-columns: 1fr;
  }

  .jsc-article-header,
  .jsc-article-body,
  .jsc-article-cta__card,
  .jsc-category-hero,
  .jsc-search-hero,
  .jsc-error-card,
  .jsc-empty {
    border-radius: 14px;
  }

  .jsc-search-form {
    flex-direction: column;
  }

  .jsc-button {
    width: 100%;
  }
}
