body.jewelry-pc-page {
  margin: 0;
  min-width: 320px;
  background: #f7fbff;
  color: #08265a;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.jpc-shell {
  width: min(1376px, calc(100% - 96px));
  margin: 0 auto;
}

.jpc-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dce7f3;
}

.jpc-nav {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  min-height: 56px;
  gap: 28px;
}

.jpc-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #053174;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.jpc-brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: #0aa768;
  font-size: 18px;
  font-weight: 900;
}

.jpc-menu {
  display: flex;
  gap: 28px;
}

.jpc-menu a,
.jpc-footer-links a {
  color: #07285b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.jpc-search {
  display: flex;
  align-items: center;
  width: 300px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #cbdbea;
  border-radius: 7px;
  color: #7890aa;
  background: #fff;
  font-size: 13px;
}

.jpc-tools {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 38px;
  border-radius: 7px;
  color: #fff;
  background: #08a66a;
  font-size: 14px;
  font-weight: 800;
}

.jpc-hero {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, #fff), #fff 45%, color-mix(in srgb, var(--accent) 7%, #fff)),
    #fff;
  border-bottom: 1px solid #e4edf7;
}

.jpc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  min-height: 214px;
  gap: 36px;
  align-items: center;
}

.jpc-crumbs {
  display: flex;
  gap: 9px;
  margin-bottom: 18px;
  color: #31527c;
  font-size: 13px;
  font-weight: 650;
}

.jpc-hero h1 {
  margin: 0;
  color: color-mix(in srgb, var(--accent) 24%, #07285b);
  font-size: 44px;
  line-height: 1.04;
  font-weight: 850;
  letter-spacing: 0;
}

.jpc-hero p {
  max-width: 670px;
  margin: 12px 0 0;
  color: #163c6b;
  font-size: 18px;
  line-height: 1.42;
}

.jpc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.jpc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, #d9e6f3);
  border-radius: 999px;
  background: #fff;
  color: color-mix(in srgb, var(--accent) 72%, #08265a);
  font-size: 13px;
  font-weight: 800;
}

.jpc-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 86%, #fff);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 18%, #fff);
}

.jpc-hero-art {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 190px;
}

.jpc-hero-art::before {
  content: "";
  position: absolute;
  inset: 26px 80px 10px 4px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  filter: blur(28px);
}

.jpc-hero-art img {
  position: relative;
  z-index: 1;
  justify-self: end;
  max-width: 285px;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(35, 66, 94, .16));
}

.jpc-hero-note {
  position: relative;
  z-index: 1;
  color: color-mix(in srgb, var(--accent) 70%, #08265a);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
}

.jpc-hero-note::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-top: 16px;
  background: var(--accent);
}

.jpc-main {
  padding: 14px 0 22px;
}

.jpc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.jpc-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.jpc-card {
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(18, 58, 100, .035);
  overflow: hidden;
}

.jpc-card.soft {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff);
}

.jpc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid #e4edf6;
}

.jpc-card h2 {
  margin: 0;
  color: #052966;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 850;
}

.jpc-card-body {
  padding: 18px;
}

.jpc-form {
  display: grid;
  gap: 16px;
}

.jpc-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.jpc-form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jpc-field {
  display: grid;
  gap: 7px;
  color: #092b66;
  font-size: 14px;
  font-weight: 800;
}

.jpc-field input,
.jpc-field select {
  height: 42px;
  padding: 0 13px;
  border: 1px solid #c9d9ea;
  border-radius: 6px;
  color: #08265a;
  background: #fff;
  font: inherit;
  font-weight: 550;
}

.jpc-tabs {
  display: flex;
  gap: 8px;
}

.jpc-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid #d3e0ee;
  border-radius: 6px;
  background: #f7fbff;
  color: #08265a;
  font-size: 14px;
  font-weight: 800;
}

.jpc-tab.active {
  border-color: color-mix(in srgb, var(--accent) 74%, #0d6edc);
  color: #fff;
  background: color-mix(in srgb, var(--accent) 82%, #176fda);
}

.jpc-button {
  height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, #0fb777, #069b61);
  font: inherit;
  font-size: 17px;
  font-weight: 850;
}

.jpc-result {
  display: grid;
  gap: 14px;
}

.jpc-total {
  display: grid;
  place-items: center;
  min-height: 150px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, #fff), #f7fbff);
  text-align: center;
}

.jpc-total span {
  color: #506d92;
  font-size: 13px;
  font-weight: 800;
}

.jpc-total strong {
  color: color-mix(in srgb, var(--accent) 78%, #08265a);
  font-size: 52px;
  line-height: 1;
  font-weight: 900;
}

.jpc-total b {
  color: color-mix(in srgb, var(--accent) 74%, #08265a);
  font-size: 34px;
}

.jpc-total em {
  color: #637b99;
  font-size: 22px;
  font-style: normal;
  font-weight: 850;
}

.jpc-metrics,
.jpc-mini-table {
  display: grid;
  border: 1px solid #dce8f3;
  border-radius: 6px;
  overflow: hidden;
}

.jpc-metric,
.jpc-mini-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 44px;
  border-bottom: 1px solid #e2ebf4;
}

.jpc-metric:last-child,
.jpc-mini-row:last-child {
  border-bottom: 0;
}

.jpc-metric span,
.jpc-mini-row span {
  padding: 12px 14px;
  color: #24476f;
  font-size: 14px;
}

.jpc-metric strong,
.jpc-mini-row strong {
  padding: 12px 14px;
  color: #08265a;
  font-size: 14px;
  font-weight: 850;
}

.jpc-section {
  margin-top: 14px;
}

.jpc-table-wrap {
  padding: 0 18px 18px;
}

.jpc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.jpc-table th,
.jpc-table td {
  padding: 10px 12px;
  border: 1px solid #dde8f3;
  text-align: center;
}

.jpc-table th {
  color: #092b66;
  background: #edf4fb;
  font-weight: 850;
}

.jpc-table tr.highlight td {
  color: color-mix(in srgb, var(--accent) 78%, #08265a);
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  font-weight: 850;
}

.jpc-media-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.jpc-media-card img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 6px;
}

.jpc-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jpc-steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  color: #173d6b;
  font-size: 15px;
  font-weight: 650;
}

.jpc-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 850;
}

.jpc-diagram {
  display: grid;
  place-items: center;
  min-height: 210px;
  background:
    linear-gradient(#e5eff9 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, #e5eff9 1px, transparent 1px) 0 0 / 66px 100%,
    #fff;
}

.jpc-diagram svg {
  width: 210px;
  height: 150px;
  color: var(--accent);
}

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

.jpc-shape {
  display: grid;
  place-items: center;
  min-height: 84px;
  border: 1px solid #d9e6f2;
  border-radius: 7px;
  background: #fbfdff;
  font-size: 13px;
  font-weight: 800;
}

.jpc-info {
  color: #234970;
  font-size: 15px;
  line-height: 1.55;
}

.jpc-tip {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 7px;
  color: color-mix(in srgb, var(--accent) 74%, #08265a);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  font-size: 14px;
  font-weight: 700;
}

.jpc-related {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.jpc-related a {
  display: grid;
  place-items: center;
  min-height: 76px;
  padding: 10px;
  border: 1px solid #d9e6f2;
  border-radius: 7px;
  color: #08265a;
  background: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
}

.jpc-footer {
  border-top: 1px solid #dce7f3;
  background: #fff;
}

.jpc-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 74px;
  gap: 38px;
}

.jpc-footer p {
  margin: 4px 0 0;
  color: #31527c;
  font-size: 12px;
}

.jpc-socials {
  display: flex;
  gap: 14px;
  color: #08265a;
  font-size: 14px;
  font-weight: 850;
}

/* Detail-page dimensions stay at native scale; only the layout reflows. */
body.directory-page.jewelry-pc-page { overflow-x: visible; }
.jewelry-pc-page main { background: #f7fbff; }
.jewelry-pc-page .jpc-hero-inner { min-height: 252px; padding-block: 24px; grid-template-columns: minmax(0, 1fr) minmax(360px, 40%); }
.jewelry-pc-page .jpc-hero-art { min-height: 212px; grid-template-columns: minmax(0, 1fr) 150px; }
.jewelry-pc-page .jpc-hero-art::before { display: none; }
.jewelry-pc-page .jpc-hero-art img { width: 100%; max-width: 360px; height: 212px; max-height: none; object-fit: contain; filter: none; }
.jewelry-pc-page .jpc-grid .jpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jewelry-pc-page .jpc-card h2 { font-size: 22px; line-height: 1.3; }
.jewelry-pc-page .jpc-card-head { padding-block: 12px; }
.jewelry-pc-page .jpc-field input,
.jewelry-pc-page .jpc-field select { width: 100%; min-width: 0; }
.jewelry-pc-page .jpc-grid > *,
.jewelry-pc-page .jpc-grid-4 > * { min-width: 0; }
.jewelry-pc-page .jpc-media-card { grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 18px; }
.jewelry-pc-page .jpc-media-card img { object-fit: contain; }
.jewelry-pc-page .jpc-table-wrap { overflow-x: auto; }
.jewelry-pc-page .jpc-tabs { flex-wrap: wrap; }
.jewelry-pc-page .jpc-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jewelry-pc-page .jpc-button { cursor: pointer; }
.jewelry-pc-page .jpc-button:focus-visible { outline: 3px solid #126dd7; outline-offset: 3px; }
.jewelry-pc-page .jpc-grid-4 .jpc-total strong { font-size: 28px; }
.jewelry-pc-page .jpc-grid-4 .jpc-total b { font-size: 20px; }
@media (min-width: 1000px) {
  .jewelry-pc-page .jpc-form > .jpc-field { grid-template-columns: minmax(140px, 32%) 1fr; align-items: center; }
}
@media (max-width: 1100px) {
  .jewelry-pc-page .jpc-shell { width: calc(100% - 48px); }
  .jewelry-pc-page .jpc-hero-inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .jewelry-pc-page .jpc-hero-art { grid-template-columns: minmax(0, 1fr) 100px; }
  .jewelry-pc-page .jpc-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jewelry-pc-page .jpc-media-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .jewelry-pc-page .jpc-shell { width: calc(100% - 32px); }
  .jewelry-pc-page .jpc-hero-inner,
  .jewelry-pc-page .jpc-grid,
  .jewelry-pc-page .jpc-grid .jpc-grid,
  .jewelry-pc-page .jpc-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .jewelry-pc-page .jpc-hero h1 { font-size: 34px; overflow-wrap: anywhere; }
  .jewelry-pc-page .jpc-crumbs { flex-wrap: wrap; }
  .jewelry-pc-page .jpc-hero-art { grid-template-columns: minmax(0, 1fr) 120px; }
  .jewelry-pc-page .jpc-hero-art img { height: 180px; }
  .jewelry-pc-page .jpc-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jewelry-pc-page .jpc-form-row.three { grid-template-columns: minmax(0, 1fr); }
  .jewelry-pc-page .jpc-table { min-width: 460px; }
  .jewelry-pc-page .jpc-card h2 { font-size: 20px; }
}
