.ks-wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; padding-bottom: 64px; color: var(--ink,#202c28); }
.ks-head { padding: 32px 0 23px; }
.ks-crumb { display: flex; align-items: center; gap: 5px; margin-bottom: 24px; color: #4d6056; font-size: .84rem; }
.ks-head h1 { font-size: clamp(2.15rem,5vw,4.2rem); line-height: 1.15; letter-spacing: -.055em; }
.ks-nav { display: flex; gap: clamp(14px,3vw,36px); border-top: 2px solid var(--ink,#202c28); border-bottom: 1px solid var(--line,#d7dfd8); }
.ks-nav a { display: inline-flex; align-items: center; min-height: 50px; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.ks-nav a[aria-current] { color: var(--blue,#075a42); border-bottom-color: currentColor; }
.ks-section { padding: 28px 0; border-bottom: 1px solid var(--line,#d7dfd8); }
.ks-section h2 { margin: 0 0 12px; font-size: clamp(1.4rem,3vw,2rem); line-height: 1.25; }
.ks-section p { margin: 4px 0 10px; max-width: 48em; }
.ks-logo { display: flex; gap: clamp(18px,3vw,36px); align-items: center; }
.ks-logo img { width: clamp(80px,12vw,144px); height: auto; display: block; }
.ks-palette { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; list-style: none; }
.ks-chip { display: block; background-color: var(--ks-swatch); height: 56px; width: 100%; border: 1px solid var(--line,#d7dfd8); }
.ks-palette h3 { margin-top: 12px; font-size: 1.02rem; }
.ks-palette button { display: inline-block; padding: 4px 0; min-height: 38px; border: 0; background: transparent; color: var(--blue,#075a42); font: inherit; font-size: .9rem; cursor: pointer; font-weight:700; }
.ks-palette p { font-size: .88rem; color: #4d6056; }
.ks-lines, .ks-type { margin: 12px 0 0; max-width: 820px; }
.ks-lines > div, .ks-type > div { display: grid; grid-template-columns: minmax(120px,1fr) minmax(0,3.2fr); gap: 12px; padding: 10px 0; align-items: baseline; border-bottom: 1px solid var(--line,#d7dfd8); }
.ks-lines dt, .ks-type dt { font-weight: 700; }
.ks-lines dd,.ks-type dd { margin: 0; }
.ks-specimen-h { font-size: clamp(1.9rem,4vw,3.25rem); letter-spacing: -.055em; line-height: 1.3; font-weight: 700; }
.ks-specimen-m { font-size: 1.5rem; font-weight: 700; }
.ks-links, .ks-search { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 16px 0 0; }
.ks-search { align-items: end; }
.ks-search label { display: grid; gap: 4px; font-weight: 700; }
.ks-search select, .ks-search input { display: block; background: #fff; border: 1px solid #7b8b81; padding: 7px 12px; min-height: 44px; border-radius: 2px; color: var(--ink,#202c28); font: inherit; }
.ks-primary { background: var(--blue,#075a42); color: white; font-weight: 700; font-size: 1rem; display: inline-flex; text-decoration: none; min-height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 2px; padding: 8px 16px; cursor: pointer; }
.ks-primary:hover { color: white; background: #0d422d; }
.ks-status { color: var(--blue,#075a42); }
.ks-status:empty { display: none; }
.ks-process { padding-inline-start: 1.65em; margin: 10px 0; max-width: 52em; }
.ks-process li { margin: 6px 0; }
@media(max-width:800px) {
  .ks-palette { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ks-wrap { width: calc(100% - 36px); padding-bottom: 40px; }
}
@media(max-width:480px) {
  .ks-palette { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ks-lines > div, .ks-type > div { grid-template-columns: 1fr; gap: 2px; }
  .ks-search label { flex: 1 1 100%; min-width: 0; }
  .ks-logo { align-items: flex-start; }
  .ks-logo figure { flex-shrink: 0; }
}

.ks-type .ks-note-sample {font-size:var(--street-note,.8125rem);color:var(--street-quiet,#655c69)}
.ks-palette button:hover {background:#deeee6}

/* Keep native search inputs inside their grid track at narrow widths. */
.ks-search label {grid-template-columns:minmax(0,1fr);min-width:0;max-width:100%}
.ks-search :is(input,select) {width:100%;min-width:0;max-width:100%;box-sizing:border-box}
#content .ks-nav a[aria-current="page"] {background:#36204e;color:white;box-shadow:2px 2px #c7b6ff}
#content .ks-nav a[aria-current="page"]::before,
#content .ks-nav a[aria-current="page"]::after {content:none}
