.sw-product {
  --sw-ink: #202833;
  --sw-muted: #505863;
  --sw-rule: #d9dde1;
  --sw-content: min(90%, 1360px);
  color: var(--sw-ink);
  background: #fff;
}
.sw-product :is(h1,h2,h3,h4) {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
}
.sw-intro, .sw-details, .swg {
  width: var(--sw-content);
  margin-inline: auto;
}
.sw-intro {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(28px, 4.5vw, 82px);
  padding-block: clamp(28px, 3.4vw, 58px) clamp(44px, 5vw, 76px);
}
.sw-label {
  margin: 0 0 16px;
  font-size: .9rem;
  color: var(--sw-muted);
}
.sw-intro h1 { margin: 0; font-size: clamp(56px, 6.2vw, 98px); letter-spacing: -.035em; }
.sw-lead { margin: 20px 0 30px; max-width: 42ch; line-height: 1.65; color: var(--sw-muted); }
.sw-hero-image { display: block; width: 100%; height: auto; }
.sw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.sw-build {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  color: white;
  background: var(--sw-ink);
  text-decoration: none;
}
.sw-build:hover { background: #37424e; }
.swg-jump { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-underline-offset: .24em; }
.sw-product a:focus-visible { outline: 2px solid var(--sw-ink); outline-offset: 4px; }

.sw-details { border-block-start: 1px solid var(--sw-rule); padding-block: clamp(38px, 4vw, 64px) clamp(46px, 5vw, 80px); }
.sw-details-title { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; margin-bottom: 28px; }
.sw-details h2, .swg-intro h2 { margin: 0; font-size: clamp(42px, 4.6vw, 68px); }
.sw-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(24px, 3vw, 48px); }
.sw-pair img { display: block; width: 100%; height: auto; }
.sw-pair h3 { margin: 20px 0 10px; font-size: clamp(30px, 2.7vw, 42px); }
.sw-pair p { max-width: 60ch; line-height: 1.65; color: var(--sw-muted); margin: 0; }
.sw-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(32px, 3vw, 52px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--sw-rule);
  gap: 24px;
}
.sw-specs dt { font-weight: 600; margin-bottom: 6px; }
.sw-specs dd { margin: 0; line-height: 1.55; color: var(--sw-muted); }

.swg { border-top: 1px solid var(--sw-rule); padding-bottom: clamp(48px, 6vw, 96px); scroll-margin-top: 88px; }
.swg-intro { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(48px, 6vw, 90px) 38px; }
.swg-intro p { line-height: 1.65; color: var(--sw-muted); margin: 12px 0 0; max-width: 58ch; }
.swg-intro img { display: block; width: clamp(120px, 15%, 180px); height: auto; }
.swg-layout {
  display: grid;
  grid-template-columns: minmax(175px, .68fr) minmax(0, 2.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--sw-rule);
}
.swg-index { padding-block: 28px; position: sticky; top: 88px; }
.swg-index h3 { font-size: 26px; margin: 0 0 14px; }
.swg-index ul { padding: 0; margin: 0; list-style: none; }
.swg-index a { display: block; padding: 7px 0; color: var(--sw-muted); text-decoration: none; line-height: 1.45; }
.swg-index a:hover { color: var(--sw-ink); text-decoration: underline; text-underline-offset: .25em; }
.swg-topic + .swg-topic { border-top: 1px solid var(--sw-rule); }
.swg-topic > h3 { position: relative; margin: 0; padding: 26px 0 16px; font-size: clamp(30px, 3vw, 44px); }
/* The site scrolls to the target's offset beneath its fixed navigation. */
.swg-anchor { position: absolute; top: -88px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.swg-body a { color: inherit; text-underline-offset: .2em; }

.swg-body { padding: 2px 0 28px; line-height: 1.6; font-size: 16px; }
.swg-body h4 { font-size: 28px; margin: 25px 0 10px; }
.swg-body > :first-child { margin-top: 0; }
.swg-body p, .swg-body ul, .swg-body ol { margin: 0 0 16px; }
.swg-body :is(ol,ul) { padding-left: 1.45em; }
.swg-body li { padding-left: .15em; margin: 4px 0; }
.swg-body figure { margin: 12px 0; }
.swg-body figure img { display: block; width: 100%; height: auto; }
.swg-body figcaption { color: var(--sw-muted); font-size: 14px; margin-top: 6px; }
.swg-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: 20px; }
.swg-reference { margin: 12px 0 18px; }
.swg-reference > div {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 14px;
  border-top: 1px solid var(--sw-rule);
  padding: 9px 0;
}
.swg-reference dt { font-weight: 600; }
.swg-reference dd { margin: 0; }
.swg-split .swg-reference > div { display: block; }
.swg-dial { display: flex; align-items: center; gap: 20px; margin: 12px 0; }
.swg-dial img { width: clamp(70px, 16%, 110px); height: auto; flex: none; }
.swg-dial p { margin: 0; }
.swg-body .swg-keys { columns: 2; column-gap: 28px; }
.swg-keys li { break-inside: avoid; }
.swg-body .swg-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 0;
  list-style: none;
}
.swg-steps li { counter-increment: step; padding: 0; margin: 0; }
.swg-steps img { display: block; background: white; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: contain; }
.swg-steps span { display: block; margin-top: 5px; font-size: 14px; line-height: 1.4; }
.swg-steps span::before { content: counter(step) ". "; font-weight: 600; }
@media (max-width: 760px) {
  .swg-layout { grid-template-columns: 1fr; gap: 12px; }
  .swg-intro img { display: none; }
  .sw-intro { grid-template-columns: 1fr; gap: 24px; }
  .swg-intro { padding-top: 82px; }
  .swg-index { position: static; padding-block: 18px; border-bottom: 1px solid var(--sw-rule); }
  .swg-index ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; }
  .sw-pair { grid-template-columns: 1fr; gap: 28px; }
  .sw-details-title { flex-wrap: wrap; gap: 10px 20px; }
  .sw-specs { grid-template-columns: 1fr; gap: 16px; }
  .swg-split { grid-template-columns: 1fr; gap: 4px; }
  .swg-split figure img { max-height: 570px; object-fit: contain; }
  .swg-body .swg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .swg-body .swg-keys { columns: 1; }
  .swg-reference > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
}
