.ct-wrap {
  width: min(1280px, 90vw);
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
  color: var(--ink, #211e29);
}
.ct-wrap [hidden] { display: none !important; }
.ct-wrap :is(.ct-results, .ct-family-list, tr[id]) { scroll-margin-top: 7rem; }
.ct-breadcrumb, .ct-small, .ct-code, .ct-table thead, .ct-controls label > span:first-child {
  font-family: var(--mono, monospace);
}
.ct-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  padding-block: 1.55rem 0;
  margin: 0;
  color: var(--muted, #615e6b);
  font-size: .72rem;
}
.ct-breadcrumb :is(a, span) { color: inherit; }
.ct-breadcrumb a:hover, .ct-code a:hover { text-decoration: underline; }
.ct-intro { margin-block: clamp(2.3rem, 5vw, 4.5rem) clamp(1.6rem, 3.2vw, 3rem); }
.ct-wrap :is(.ct-intro, .ct-family-hero) h1 {
  margin: 0;
  color: var(--ink, #211e29);
  font-family: var(--sans, sans-serif);
  font-size: clamp(2.7rem, 5.9vw, 5.75rem);
  font-weight: 590;
  letter-spacing: -.062em;
  line-height: 1;
  text-wrap: balance;
}
.ct-intro > p, .ct-family-hero p {
  max-width: 56ch;
  margin: 1.25rem 0 0;
  color: var(--muted, #615e6b);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.55;
}
.ct-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ct-series-card {
  display: grid;
  grid-template-columns: clamp(3.6rem, 6.3vw, 6rem) 1fr auto;
  align-items: center;
  gap: clamp(.7rem, 1.6vw, 1.3rem);
  padding: .78rem;
  border: 1px solid var(--line, #dcd9df);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease;
}
.ct-series-card:hover, .ct-series-card:focus-visible { border-color: var(--purple, #634bcc); }
.ct-series-card img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 1; }
.ct-arrow { align-self: start; color: var(--purple, #634bcc); }
.ct-small { display: inline-block; color: var(--muted, #615e6b); font-size: .75rem; }
.ct-series-card h2 { margin: .26rem 0 0; font-size: clamp(1rem, 1.55vw, 1.35rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.ct-section-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.5rem; }
.ct-wrap :is(.ct-section-head, .ct-trial) h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.3vw, 3.15rem);
  font-weight: 550;
  letter-spacing: -.047em;
  line-height: 1.1;
}
.ct-results, .ct-family-list { margin-top: clamp(3rem, 6.2vw, 5.4rem); }
.ct-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem 1.3rem; margin-top: 1.45rem; }
.ct-controls label { min-width: 0; display: grid; gap: .42rem; }
.ct-controls label > span:first-child { font-size: .74rem; font-weight: 500; }
.ct-controls .ct-search { flex: 1 1 325px; max-width: 555px; }
.ct-input { position: relative; }
.ct-input i {
  position: absolute; left: .85rem; top: calc(50% - .5rem);
  width: .82rem; height: .82rem; border: 1.7px solid var(--muted, #615e6b); border-radius: 50%; pointer-events: none;
}
.ct-input i::after {
  content: ""; position: absolute; width: .43rem; height: 1.7px; background: var(--muted, #615e6b);
  left: .56rem; top: .58rem; transform: rotate(45deg); transform-origin: left center;
}
.ct-controls :is(input, select) {
  width: 100%; min-height: 2.85rem; padding: .55rem .9rem;
  color: var(--ink, #211e29); background: white; font: inherit; font-size: 1rem;
  border: 1px solid var(--line, #dcd9df); border-radius: 0;
}
.ct-controls input { padding-left: 2.5rem; }
.ct-controls select { min-width: 12rem; }
.ct-reset, .ct-text-btn { background: transparent; border: 0; font: inherit; font-weight: 600; color: var(--purple, #634bcc); cursor: pointer; }
.ct-reset { padding: .7rem .15rem; }
.ct-text-btn { padding: .3rem 0; }
.ct-reset:hover, .ct-text-btn:hover { text-decoration: underline; }
.ct-table {
  width: 100%;
  margin-block: 1.45rem 0;
  border-collapse: collapse;
  border-top: 1px solid var(--line, #dcd9df);
  font-family: var(--sans, sans-serif);
  font-size: 1rem;
  text-align: left;
}
.ct-table thead { color: var(--muted, #615e6b); font-size: .73rem; }
.ct-table thead th {
  padding-block: .7rem;
  border-bottom: 1px solid var(--line, #dcd9df);
  font-weight: 500;
}
.ct-table :is(td,th) { text-align: left; vertical-align: middle; padding-inline: .7rem; }
.ct-table :is(th, td):first-child { padding-left: .45rem; }
.ct-table tr :last-child { padding-right: .45rem; }
.ct-table tbody :is(td,th) { padding-block: 1rem; border-bottom: 1px solid var(--line, #dcd9df); }
.ct-table .ct-code { width: 15%; font-size: .89rem; font-weight: 600; white-space: nowrap; }
.ct-code a { color: inherit; }
.ct-code a, .ct-act a, .ct-inline { text-decoration: none; }
.ct-name { width: 46%; font-weight: 550; line-height: 1.4; }
.ct-process { width: 27%; font-size: .88rem; color: var(--muted, #615e6b); }
.ct-table .ct-act { text-align: right; white-space: nowrap; }
.ct-act a, .ct-inline { color: var(--purple, #634bcc); font-size: .88rem; font-weight: 630; }
.ct-act a { display: inline-block; padding-block: .32rem; }
.ct-act a:hover, .ct-inline:hover { text-decoration: underline; }
.ct-table tr:target { background: #efebfa; }
.ct-note { max-width: 76ch; margin: 1.15rem 0 0; color: var(--muted, #615e6b); font-size: .88rem; line-height: 1.55; }
.ct-empty { padding: 2.4rem 1.5rem; background: #f3f1f6; }
.ct-empty h3 { margin: 0; font-size: 1.25rem; }
.ct-empty p { margin: .55rem 0; }
.ct-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ct-family-hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-block: clamp(2rem, 4vw, 3.4rem) clamp(2.5rem, 5.2vw, 4.8rem);
}
.ct-family-hero .ct-inline { display: inline-block; margin-top: 1.6rem; }
.ct-family-hero img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.ct-trial { padding-top: 2rem; border-top: 1px solid var(--line, #dcd9df); }
.ct-trial dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3.3vw, 3.25rem); margin: 1.7rem 0 0; }
.ct-trial dt { font-size: 1.05rem; font-weight: 650; }
.ct-trial dd { margin: .5rem 0 0; line-height: 1.6; color: var(--muted, #615e6b); }
.ct-guides { margin-top: 2rem; border-top: 1px solid var(--line, #dcd9df); padding-top: 1.35rem; }
.ct-guides h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.ct-guides ul { display: flex; flex-wrap: wrap; gap: .65rem 2.25rem; list-style: none; padding: 0; margin: .65rem 0 0; }
.ct-group { margin-top: 2.3rem; }
.ct-group h3 { font-size: 1.18rem; margin: 0; letter-spacing: -.018em; }
.ct-group .ct-table { margin-top: .65rem; }
.ct-wrap :is(a, input, select, button):focus-visible { outline: 2px solid var(--purple, #634bcc); outline-offset: 3px; }
@media (max-width: 880px) {
  .ct-cards { gap: .53rem; }
  .ct-series-card { grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
  .ct-series-card img { grid-column: 1 / -1; aspect-ratio: 1.85; }
}
@media (max-width: 680px) {
  .ct-breadcrumb { padding-top: 1rem; }
  .ct-cards { grid-template-columns: 1fr; }
  .ct-series-card { grid-template-columns: 4.2rem 1fr auto; padding: .52rem; gap: .92rem; }
  .ct-series-card img { grid-column: auto; aspect-ratio: 1.4; }
  .ct-series-card .ct-arrow { align-self: center; margin-right: .35rem; }
  .ct-family-hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .ct-family-hero img { max-height: 260px; }
  .ct-trial dl { grid-template-columns: 1fr; gap: 1.1rem; }
  .ct-results, .ct-family-list { margin-top: 2.8rem; }
  .ct-controls { gap: .7rem 1rem; }
  .ct-controls .ct-search { flex-basis: 100%; max-width: none; }
  .ct-controls > label:not(.ct-search) { flex: 1 1 10rem; }
  .ct-table { display: block; }
  .ct-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ct-table tbody { display: block; }
  .ct-table tbody tr {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .36rem .45rem;
    padding: 1rem 0; border-bottom: 1px solid var(--line, #dcd9df);
  }
  .ct-table tbody tr :is(th, td) { width: auto; border: 0; padding: 0; }
  .ct-table .ct-code { grid-area: 1 / 1; }
  .ct-table .ct-name { grid-area: 2 / 1 / auto / -1; }
  .ct-table .ct-process { grid-area: 3 / 1 / auto / -1; }
  .ct-table .ct-act { grid-area: 1 / 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-series-card { transition: none; }
}

/* Technical selection hubs: dense tables stay static and scroll within the page. */
.ct-wrap { min-width: 0; }
.ct-series-card h3 { margin: .26rem 0 0; font-size: clamp(1rem, 1.55vw, 1.35rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.ct-hub-section { margin-top: clamp(2.6rem, 5vw, 4.6rem); padding-top: clamp(1.4rem, 3vw, 2.6rem); border-top: 1px solid var(--line, #dcd9df); min-width: 0; scroll-margin-top: 6.5rem; }
.ct-hub-section > h2 { max-width: 32ch; margin: 0; font-size: clamp(1.65rem, 3.2vw, 2.8rem); font-weight: 570; line-height: 1.14; letter-spacing: -.045em; text-wrap: balance; }
.ct-answer { max-width: 84ch; margin: 1.1rem 0 1.7rem; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.7; color: var(--ink, #211e29); }
.ct-selection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.3rem, 3vw, 2.8rem); }
.ct-selection-grid h3 { margin: 0 0 .65rem; font-size: 1.12rem; line-height: 1.25; letter-spacing: -.02em; }
.ct-selection-grid p { margin: 0; color: var(--muted, #615e6b); line-height: 1.65; }
.ct-matrix-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line, #dcd9df); background: #fff; }
.ct-matrix, .ct-troubleshooting { width: 100%; border-collapse: collapse; text-align: left; font-size: .89rem; line-height: 1.55; }
.ct-matrix { min-width: 1060px; table-layout: fixed; }
.ct-troubleshooting { min-width: 700px; }
.ct-matrix caption, .ct-troubleshooting caption { text-align: left; padding: 1rem 1.1rem; background: #f4f2f7; color: var(--muted, #615e6b); font-size: .82rem; line-height: 1.5; }
.ct-matrix :is(th, td), .ct-troubleshooting :is(th, td) { padding: 1rem .8rem; border-top: 1px solid var(--line, #dcd9df); vertical-align: top; overflow-wrap: anywhere; }
.ct-matrix thead th, .ct-troubleshooting thead th { background: #f8f7fa; font-size: .76rem; font-family: var(--mono, monospace); font-weight: 600; }
.ct-matrix tbody th, .ct-troubleshooting tbody th { font-weight: 500; }
.ct-matrix thead th:nth-child(1) { width: 19%; }
.ct-matrix thead th:nth-child(2) { width: 10%; }
.ct-matrix thead th:nth-child(3) { width: 16%; }
.ct-matrix thead th:nth-child(4) { width: 19%; }
.ct-matrix thead th:nth-child(5) { width: 20%; }
.ct-matrix thead th:nth-child(6) { width: 16%; }
.ct-troubleshooting th:first-child { width: 21%; }
.ct-troubleshooting td:nth-child(2) { width: 30%; }
.ct-grade-code { display: block; margin-bottom: .35rem; font-family: var(--mono, monospace); font-size: .93rem; }
.ct-grade-name { display: block; margin-bottom: .6rem; line-height: 1.45; }
.ct-matrix tbody tr:nth-child(even), .ct-troubleshooting tbody tr:nth-child(even) { background: #fcfbfd; }
.ct-matrix tr[id] { scroll-margin-top: 7rem; }
.ct-matrix tr:target { background: #ede7fc !important; }
.ct-method-note { max-width: 100ch; margin: 1.2rem 0; color: var(--muted, #615e6b); font-size: .9rem; line-height: 1.7; }
.ct-method-note a, .ct-resource-links a { color: var(--purple, #634bcc); text-underline-offset: .22em; }
.ct-data-notes { max-width: 105ch; padding: .9rem 1.1rem; border: 1px solid var(--line, #dcd9df); font-size: .88rem; line-height: 1.65; }
.ct-data-notes summary { cursor: pointer; font-weight: 600; }
.ct-data-notes ul { padding-left: 1.15rem; }
.ct-data-notes li + li { margin-top: .65rem; }
.ct-resource-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.ct-resource-links li { border-bottom: 1px solid var(--line, #dcd9df); }
.ct-resource-links a { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: 1rem 0; text-decoration: none; line-height: 1.45; }
.ct-resource-links a:hover { text-decoration: underline; }
.ct-faq details { border-top: 1px solid var(--line, #dcd9df); }
.ct-faq details:last-child { border-bottom: 1px solid var(--line, #dcd9df); }
.ct-faq summary { padding: 1.15rem 0; font-weight: 600; font-size: 1.02rem; line-height: 1.5; cursor: pointer; }
.ct-faq details p { max-width: 88ch; margin: 0 0 1.3rem; padding-right: 1rem; line-height: 1.75; color: var(--muted, #615e6b); }
.ct-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 3rem; padding: 1.4rem 1.5rem; background: #efebf9; }
.ct-request p { margin: 0; max-width: 54ch; line-height: 1.6; }
.ct-request a { color: var(--purple, #634bcc); font-weight: 650; line-height: 1.5; text-underline-offset: .2em; }
.ct-wrap :is(summary, [tabindex]):focus-visible { outline: 2px solid var(--purple, #634bcc); outline-offset: 3px; }
@media (max-width: 800px) {
  .ct-selection-grid { grid-template-columns: 1fr; }
  .ct-selection-grid p { max-width: 74ch; }
  .ct-resource-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ct-family-hero h1 { font-size: clamp(2.5rem, 11.8vw, 3.7rem); overflow-wrap: anywhere; }
  .ct-matrix-scroll { margin-top: 1rem; }
  .ct-request { padding: 1.1rem; }
}
