﻿/* layout */
.case-wrap {
  max-width: 880px;
  margin:    0 auto;
  padding:   40px var(--s4) 80px;
}

/* header */
.case-header {
  margin-bottom: 40px;
}

.case-header h1 {
  margin:      0 0 6px;
  font-size:   clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.05;
}

.case-header .case-sub {
  color:       var(--muted);
  font-size:   0.95rem;
  max-width:   72ch;
  margin:      0 0 16px;
  line-height: 1.55;
}

.case-meta {
  display:     flex;
  flex-wrap:   wrap;
  gap:         8px;
  align-items: center;
}

.shipped {
  background:   var(--ink);
  color:        var(--panel);
  border-color: var(--ink);
}

/* table of contents */
.toc {
  background:    var(--panel);
  border:        1px solid var(--line);
  border-radius: var(--r);
  box-shadow:    var(--shadow);
  padding:       var(--s4);
  margin-bottom: 48px;
}

.toc h3 {
  font-size:      0.7rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color:          var(--muted);
  margin:         0 0 10px;
}

.toc ol {
  margin:      0;
  padding-left: 20px;
  columns:     2;
  column-gap:  32px;
}

.toc li {
  font-size:     0.875rem;
  color:         var(--muted);
  margin-bottom: 4px;
  break-inside:  avoid;
}

.toc li a {
  color: var(--ink);
}

/* spec sections */
.spec {
  margin-bottom: 52px;
}

.spec h2 {
  font-size:      0.8rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color:          var(--muted);
  margin:         0 0 18px;
  padding-bottom: 10px;
  border-bottom:  1px solid var(--line);
}

.spec h3 {
  font-size: 1.05rem;
  margin:    24px 0 8px;
}

.spec p {
  color:       var(--muted);
  font-size:   0.95rem;
  line-height: 1.65;
  margin:      0 0 14px;
  max-width:   74ch;
}

.spec ul, .spec ol {
  margin:       0 0 16px;
  padding-left: 22px;
}

.spec li {
  color:         var(--muted);
  font-size:     0.875rem;
  line-height:   1.6;
  margin-bottom: 5px;
}

/* images */
.spec-img {
  width:         100%;
  border-radius: var(--r);
  border:        1px solid var(--line);
  box-shadow:    var(--shadow);
  margin:        8px 0 6px;
  display:       block;
}

.spec .spec-caption {
  font-size:  0.75rem;
  color:      var(--muted);
  margin:     0 0 28px;
  font-style: italic;
  text-align: center;
  max-width:  none;
}

/* tables */
.spec-table {
  width:           100%;
  border-collapse: collapse;
  margin:          8px 0 24px;
  font-size:       0.875rem;
}

.spec-table th {
  text-align:     left;
  font-size:      0.7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color:          var(--muted);
  padding:        8px 12px;
  border-bottom:  2px solid var(--line);
  background:     rgba(246, 246, 244, .5);
}

.spec-table td {
  padding:        10px 12px;
  border-bottom:  1px solid var(--line);
  color:          var(--muted);
  vertical-align: top;
}

.spec-table td:first-child {
  color:       var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* callout */
.callout {
  background:    var(--panel);
  border:        1px solid var(--line);
  border-radius: var(--r);
  box-shadow:    var(--shadow);
  padding:       var(--s4);
  margin:        16px 0 24px;
}

.callout p {
  margin:     0;
  text-align: center;
  font-style: italic;
  max-width:  none;
}

/* responsive */
@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

/* video embed */
.video-embed {
  position:       relative;
  padding-bottom: 56.25%;
  height:         0;
  overflow:       hidden;
  border-radius:  var(--r);
  margin:         8px 0 6px;
}

.video-embed iframe {
  position: absolute;
  top:      0;
  left:     0;
  width:    100%;
  height:   100%;
  border:   0;
}
