/* Nightfall Class · Knight (v2.04) — page-only styles. Linked only from knight.html.
   Breakpoints: see the "Version 2 foundation" header in ../site.css. */

/* ---------- Inner-page banner (v2.00 "Inner page header", same on game / classes / knight) ---------- */
.pbn {
  position: relative;
  background:
    radial-gradient(60% 80% at 75% 40%, rgba(138, 110, 60, 0.18) 0%, rgba(12, 11, 10, 0) 70%),
    linear-gradient(180deg, #12100D 0%, #0C0B0A 100%);
}

.pbn-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 360px;
  padding-top: 76px; /* room for the hanging crest */
}

.pbn-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 0 1 640px;
  min-width: 0;
}

.pbn-crumb {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 22px;
}

.pbn-crumb li + li::before {
  content: "›";
  padding-inline: 5px;
}

.pbn-crumb a {
  color: inherit;
}

.pbn-title {
  margin: 0;
  color: var(--v2-text-hero);
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 700;
  line-height: 62px;
}

.pbn-line {
  margin: 0;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 23px;
  line-height: 28px;
}

.pbn-pic {
  position: relative;
  flex: 0 0 auto;
  width: 460px;
  max-width: 100%;
  height: 240px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  background: #0A0909;
  box-shadow: 0 0 0 5px #0A0908, 0 0 0 6px #4A3B22;
}

.pbn-pic > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* ---------- Section title rule with the gold diamond ---------- */
.pg-rule {
  padding-top: 40px;
  padding-bottom: 8px;
}

.pg-rule .title-rule {
  gap: 18px;
}

.pg-rule .title-rule::after {
  background: linear-gradient(90deg, #8A6E3C 0%, rgba(138, 110, 60, 0) 100%);
}

.tr-diamond {
  position: relative;
  order: 2;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}

.tr-diamond::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--v2-gold);
  transform: rotate(45deg);
}

/* ---------- Closing playtest button ---------- */
.pg-cta {
  display: flex;
  justify-content: center;
  padding-top: 4px;
  padding-bottom: 28px;
}

@media (max-width: 1279px) {
  .pbn-copy {
    flex-basis: 520px;
  }

  .pbn-pic {
    width: 420px;
    height: 220px;
  }
}

@media (max-width: 1023px) {
  .pbn-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    min-height: 0;
    padding-top: 40px;
    padding-bottom: 44px;
  }

  .pbn-copy {
    flex-basis: auto;
  }

  .pbn-pic {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 767px) {
  .pbn-inner {
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .pbn-copy {
    gap: 10px;
  }

  .pbn-crumb {
    font-size: 16px;
    line-height: 20px;
  }

  .pbn-title {
    font-size: 42px;
    line-height: 48px;
  }

  .pbn-line {
    font-size: 19px;
    line-height: 24px;
  }

  .pbn-pic {
    height: 200px;
  }

  .pg-rule {
    padding-top: 28px;
  }

  .pg-rule .title-rule {
    gap: 12px;
    font-size: 28px;
    line-height: 34px;
  }

  .pg-cta .btn-xl {
    width: 354px;
    height: 60px;
    padding-inline: 36px;
    font-size: 18px;
    line-height: 28px;
  }
}

@media (max-width: 359px) {
  .pg-rule .title-rule {
    font-size: 24px;
    line-height: 30px;
  }

  .pg-cta .btn-xl {
    padding-inline: 28px;
    font-size: 16px;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .pbn-inner {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .pbn-copy {
    flex: 0 1 380px;
    gap: 8px;
  }

  .pbn-title {
    font-size: 42px;
    line-height: 48px;
  }

  .pbn-pic {
    flex-shrink: 1;
    width: 320px;
    min-width: 0;
    height: 176px;
  }

  .pg-rule {
    padding-top: 24px;
  }

  .pg-rule .title-rule {
    gap: 18px;
    font-size: 30px;
    line-height: 36px;
  }

  .pg-cta .btn-xl {
    width: 520px;
    height: 72px;
    padding-inline: 64px;
    font-size: 22px;
  }
}

/* ---------- Banner: class render instead of a screenshot ---------- */
.pbn-pic.kn-banner {
  background:
    radial-gradient(ellipse 55% 75% at 50% 60%, rgba(138, 110, 60, 0.35) 0%, #08080C 75%),
    url("../../img/ornate/bg_stone.jpg") 0 0 / 360px 360px;
}

.pbn-pic.kn-banner > img {
  position: absolute;
  top: -30px;
  left: 150px;
  width: 300px;
  max-width: none;
  height: auto;
  object-fit: contain;
}

.kn-banner-tag {
  top: auto;
  right: auto;
  bottom: 8px;
  left: 8px;
}

/* ---------- Page body ---------- */
.kn-content {
  padding-bottom: 104px;
}

:where(.kn-content) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.kn-content) h2,
:where(.kn-content) h3,
:where(.kn-content) p,
:where(.kn-content) figure {
  margin: 0;
}

/* ---------- Hero row: render + facts ---------- */
.kn-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.kn-render {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 auto;
  width: 400px;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--v2-line-strong);
  background: radial-gradient(ellipse 60% 60% at 50% 55%, rgba(138, 110, 60, 0.3) 0%, rgba(10, 10, 14, 0.92) 80%);
  box-shadow: 0 0 0 4px rgba(10, 10, 14, 0.9), 0 0 0 5px var(--v2-line-dark);
}

.kn-render img {
  width: 320px;
  height: 480px;
  object-fit: contain;
}

.kn-facts {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.kn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.kn-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 12px;
  background: rgba(10, 10, 14, 0.88);
}

.kn-chip img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.kn-chip-copy {
  display: flex;
  flex-direction: column;
}

.kn-chip-label {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 20px;
}

.kn-chip-value {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 26px;
  white-space: nowrap;
}

.kn-sig {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 30px;
  background: rgba(10, 10, 14, 0.88);
}

.kn-sig-icon {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
  border: 1px solid var(--v2-line-strong);
  object-fit: cover;
}

.kn-sig-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.kn-sig-kicker {
  color: var(--v2-gold);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 20px;
  text-transform: uppercase;
}

.kn-sig-title {
  color: var(--v2-gold-pale);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}

.kn-sig-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 22px;
  line-height: 28px;
}

.kn-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 4px;
}

.kn-bullets li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

.kn-bullets li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 3.5px;
  flex: 0 0 auto;
  background: var(--v2-gold);
  transform: rotate(45deg);
}

/* ---------- Top skills ---------- */
.kn-skills {
  padding-top: 26px;
  padding-bottom: 72px;
}

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

.kn-skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 28px 18px 26px;
  background: rgba(10, 10, 14, 0.88);
  text-align: center;
}

.kn-skill img {
  width: 96px;
  height: 96px;
  border: 1px solid var(--v2-line-strong);
  object-fit: cover;
}

.kn-skill-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 28px;
}

.kn-skill-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 23px;
}

/* ---------- Work in progress ---------- */
.kn-wip {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 400px) minmax(200px, 1fr);
  align-items: center;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 72px;
}

.kn-clip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.kn-clip img {
  width: 100%;
  height: auto;
  aspect-ratio: 400 / 250;
  border: 1px solid var(--v2-line);
  object-fit: cover;
}

.kn-clip figcaption {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 21px;
}

.kn-note {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding-left: 16px;
}

.kn-note img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.kn-note-title {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.kn-note-text {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 25px;
}

/* ---------- Skill trees ---------- */
.kn-trees {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 26px;
  padding-bottom: 72px;
}

.kn-trees-intro {
  color: var(--v2-body);
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 26px;
}

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

.kn-tree {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 20px;
  background: rgba(10, 10, 14, 0.88);
}

.kn-tree img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.kn-tree-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.kn-tree-name {
  color: var(--v2-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
}

.kn-tree-kind {
  color: var(--v2-dim);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 21px;
}

/* ---------- Previous / next class ---------- */
.kn-prevnext {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
  padding-bottom: 48px;
}

.kn-nav-btn {
  flex: 0 1 300px;
  width: 300px;
  height: 64px;
  padding-inline: 36px;
  font-size: 19px;
  line-height: 24px;
}

.kn-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--v2-gold);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}

@media (hover: hover) {
  .kn-all:hover {
    color: var(--v2-gold-pale);
  }
}

/* ---------- iPad landscape (1024–1279) ---------- */
@media (max-width: 1279px) {
  .pbn-pic.kn-banner > img {
    left: 130px;
    width: 280px;
  }

  .kn-hero {
    gap: 40px;
  }

  .kn-render {
    width: 360px;
    height: 480px;
  }

  .kn-render img {
    width: 300px;
    height: 450px;
  }

  .kn-wip {
    gap: 24px;
  }
}

/* ---------- iPad portrait (768–1023) ---------- */
@media (max-width: 1023px) {
  .pbn-pic.kn-banner {
    height: 260px;
  }

  .pbn-pic.kn-banner > img {
    top: -50px;
    left: 50%;
    width: 420px;
    transform: translateX(-50%);
  }

  .kn-hero {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    padding-top: 48px;
  }

  .kn-render {
    width: 100%;
    height: 380px;
  }

  .kn-render img {
    width: 240px;
    height: 360px;
  }

  .kn-skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kn-wip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
    column-gap: 20px;
  }

  .kn-note {
    grid-column: 1 / -1;
    padding-left: 0;
  }

  .kn-nav-btn {
    flex-basis: 250px;
    width: 250px;
  }
}

/* ---------- iPhone portrait (< 768) ---------- */
@media (max-width: 767px) {
  .pbn-pic.kn-banner {
    height: 200px;
  }

  .pbn-pic.kn-banner > img {
    top: -30px;
    width: 300px;
  }

  .kn-content {
    padding-bottom: 56px;
  }

  .kn-hero {
    gap: 24px;
    padding-top: 32px;
  }

  .kn-render {
    height: 340px;
  }

  .kn-render img {
    width: 220px;
    height: 330px;
  }

  .kn-facts {
    gap: 20px;
  }

  .kn-chips {
    gap: 10px;
  }

  .kn-sig {
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
  }

  .kn-sig-icon {
    width: 64px;
    height: 64px;
  }

  .kn-sig-title {
    font-size: 28px;
    line-height: 34px;
  }

  .kn-sig-text {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-bullets li {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-skills,
  .kn-wip,
  .kn-trees {
    padding-bottom: 48px;
  }

  .kn-skill-grid {
    gap: 20px;
  }

  .kn-skill {
    gap: 10px;
    padding: 20px 12px 18px;
  }

  .kn-skill img {
    width: 72px;
    height: 72px;
  }

  .kn-skill-name {
    font-size: 18px;
    line-height: 22px;
  }

  .kn-skill-text {
    font-size: 16px;
    line-height: 20px;
  }

  .kn-wip {
    grid-template-columns: minmax(0, 1fr);
  }

  .kn-trees-intro {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-tree-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kn-tree {
    gap: 10px;
    padding: 16px 14px;
  }

  .kn-prevnext {
    padding-bottom: 32px;
  }

  .kn-nav-btn {
    flex-basis: 170px;
    width: 170px;
    height: 56px;
    padding-inline: 20px;
    font-size: 17px;
  }

  .kn-all {
    display: none;
  }
}

@media (max-width: 374px) {
  .kn-skill-grid {
    gap: 12px;
  }

  .kn-skill-name {
    font-size: 16px;
    line-height: 20px;
  }
}

/* ---------- iPhone landscape (short screens) ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .pbn-pic.kn-banner {
    height: 176px;
  }

  .pbn-pic.kn-banner > img {
    top: -30px;
    width: 260px;
  }

  .kn-content {
    padding-bottom: 56px;
  }

  .kn-hero {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .kn-render {
    width: 260px;
    height: 340px;
  }

  .kn-render img {
    width: 210px;
    height: 315px;
  }

  .kn-facts {
    gap: 20px;
  }

  .kn-chips {
    gap: 10px;
  }

  .kn-sig {
    align-items: center;
    gap: 16px;
    padding: 18px;
  }

  .kn-sig-icon {
    width: 64px;
    height: 64px;
  }

  .kn-sig-title {
    font-size: 28px;
    line-height: 34px;
  }

  .kn-sig-text {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-bullets li {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-skills,
  .kn-wip,
  .kn-trees {
    padding-bottom: 48px;
  }

  .kn-skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .kn-skill {
    gap: 10px;
    padding: 20px 12px 18px;
  }

  .kn-skill img {
    width: 72px;
    height: 72px;
  }

  .kn-skill-name {
    font-size: 18px;
    line-height: 22px;
  }

  .kn-skill-text {
    font-size: 16px;
    line-height: 20px;
  }

  .kn-wip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kn-tree-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .kn-tree {
    gap: 14px;
    padding: 16px 20px;
  }

  .kn-nav-btn {
    flex-basis: 250px;
    width: 250px;
    height: 64px;
    font-size: 19px;
  }

  .kn-all {
    display: inline-flex;
  }
}

/* ==========================================================================
   Version 3 "native to every screen" (lane site-v3-b). Mac (>= 1280) unchanged:
   the four extra skills are .below-mac and the skill row stays a 4-column grid.
   ========================================================================== */

/* Status line slot in the hero (filled by site.js; shown on iPad portrait + iPhone portrait) */
.pbn-status {
  display: none;
}

.kn-render {
  position: relative;
}

.kn-render-tag {
  top: auto;
  right: auto;
  bottom: 8px;
  left: 8px;
}

/* Skill-test clips open in the lightbox */
a.kn-clip-media {
  display: block;
  color: inherit;
}

@media (min-width: 1280px) {
  .kn-skill-grid.swipe {
    overflow: visible;
    scroll-snap-type: none;
  }
}

/* ---------- Below Mac: skills become a swipe row (8 skills) ---------- */
@media (max-width: 1279px) {
  .kn-skill-grid {
    --per: 4.3;
    display: flex;
    gap: var(--swipe-gap);
  }
}

/* ---------- iPad portrait: hero text, then render + facts side by side ---------- */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .pbn-status {
    display: block;
  }

  .pbn-pic.kn-banner {
    display: none;
  }

  .pbn-inner {
    padding-bottom: 24px;
  }

  .kn-hero {
    flex-direction: row;
    align-items: center;
    gap: 32px;
    padding-top: 16px;
    padding-bottom: 32px;
  }

  .kn-render {
    width: 300px;
    height: 420px;
  }

  .kn-render img {
    width: 260px;
    height: 390px;
  }

  .kn-facts {
    gap: 20px;
  }

  .kn-sig {
    order: -1;
    gap: 18px;
    padding: 22px;
  }

  .kn-sig-icon {
    width: 72px;
    height: 72px;
  }

  .kn-sig-title {
    font-size: 30px;
    line-height: 36px;
  }

  .kn-sig-text {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-chips {
    gap: 10px;
  }

  .kn-chip {
    padding: 8px 14px 8px 10px;
  }

  .kn-chip img {
    width: 36px;
    height: 36px;
  }

  .kn-chip-value {
    font-size: 18px;
    line-height: 22px;
  }

  .kn-bullets {
    gap: 10px;
  }

  .kn-bullets li {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-skill-grid {
    --per: 3.3;
  }

  .kn-note {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    row-gap: 2px;
  }

  .kn-note img {
    grid-row: 1 / span 2;
  }
}

/* ---------- iPhone portrait + landscape ---------- */
@media (max-width: 767px), (max-height: 500px) and (orientation: landscape) {
  .kn-skill-grid {
    gap: var(--swipe-gap);
  }

  .kn-clip figcaption {
    font-size: 14px;
    line-height: 18px;
  }
}

/* ---------- iPhone portrait: render + signature move first ---------- */
@media (max-width: 767px) and (min-height: 501px), (max-width: 767px) and (orientation: portrait) {
  .pbn-status {
    display: block;
  }

  .pbn-pic.kn-banner {
    display: none;
  }

  .pbn-inner {
    padding-top: 22px;
    padding-bottom: 14px;
  }

  .kn-hero {
    gap: 14px;
    padding-top: 4px;
    padding-bottom: 28px;
  }

  .kn-render {
    height: 280px;
  }

  .kn-render img {
    width: 180px;
    height: 270px;
  }

  .kn-facts {
    gap: 14px;
  }

  .kn-sig {
    order: -1;
    align-items: center;
    gap: 14px;
    padding: 16px;
  }

  .kn-sig-icon {
    width: 60px;
    height: 60px;
  }

  .kn-sig-kicker {
    font-size: 14px;
    line-height: 18px;
  }

  .kn-sig-title {
    font-size: 25px;
    line-height: 30px;
  }

  .kn-sig-text {
    font-size: 17px;
    line-height: 22px;
  }

  .kn-chips {
    gap: 8px;
  }

  .kn-chip {
    flex: 1 1 auto;
    gap: 8px;
    padding: 6px 10px 6px 8px;
  }

  .kn-chip img {
    width: 30px;
    height: 30px;
  }

  .kn-chip-label {
    font-size: 14px;
    line-height: 17px;
  }

  .kn-chip-value {
    font-size: 16px;
    line-height: 20px;
  }

  .kn-bullets {
    gap: 8px;
  }

  .kn-bullets li {
    font-size: 17px;
    line-height: 22px;
  }

  .kn-skills {
    padding-top: 18px;
  }

  .kn-skill-grid {
    --per: 1.75;
  }

  .kn-skill {
    padding: 18px 10px 16px;
  }

  /* Skill tests: two tap-to-open thumbnails, then a one-line note */
  .kn-wip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
  }

  .kn-clip {
    gap: 6px;
  }

  .kn-note {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    padding-left: 0;
  }

  .kn-note img {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
  }

  .kn-note-title {
    font-size: 19px;
    line-height: 24px;
  }

  .kn-note-text {
    font-size: 16px;
    line-height: 21px;
  }

  .kn-trees {
    gap: 12px;
    padding-top: 18px;
  }

  .kn-tree-grid {
    gap: 8px;
  }

  .kn-tree {
    padding: 10px 14px;
  }

  .kn-tree img {
    width: 40px;
    height: 40px;
  }

  .kn-tree-name {
    font-size: 20px;
    line-height: 24px;
  }

  .kn-tree-kind {
    font-size: 14px;
    line-height: 18px;
  }
}

/* ---------- iPhone landscape (short screens, last): render sits in the hero, facts in 2 columns ---------- */
@media (max-height: 500px) and (orientation: landscape) {
  .kn-render {
    display: none;
  }

  .kn-hero {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .kn-facts {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      "sig bullets"
      "chips bullets";
    align-items: center;
    gap: 14px 28px;
  }

  .kn-sig {
    grid-area: sig;
    padding: 14px 16px;
  }

  .kn-sig-icon {
    width: 56px;
    height: 56px;
  }

  .kn-sig-title {
    font-size: 24px;
    line-height: 30px;
  }

  .kn-sig-text {
    font-size: 17px;
    line-height: 22px;
  }

  .kn-chips {
    grid-area: chips;
    gap: 8px;
  }

  .kn-chip {
    gap: 8px;
    padding: 6px 12px 6px 8px;
  }

  .kn-chip img {
    width: 30px;
    height: 30px;
  }

  .kn-chip-label {
    font-size: 14px;
    line-height: 17px;
  }

  .kn-chip-value {
    font-size: 16px;
    line-height: 20px;
  }

  .kn-bullets {
    grid-area: bullets;
    gap: 12px;
  }

  .kn-bullets li {
    font-size: 17px;
    line-height: 22px;
  }

  .kn-skill-grid {
    --per: 3.3;
  }

  .kn-wip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(160px, 0.8fr);
    gap: 16px;
  }

  .kn-note {
    grid-column: auto;
    padding-left: 0;
  }
}

/* ==========================================================================
   Fix pass B (2026-11-27)
   ========================================================================== */

/* D8 / C61: Shield Wall uses the neutral 128px shield (no Shield Ring icon);
   padded so the drawn shield never exceeds ~80px and stays sharp. */
.kn-sig-icon {
  box-sizing: border-box;
  padding: 8%;
  background: #050506;
  object-fit: contain;
}

/* C63 / C64: one "All classes" button until other class pages exist. */
.kn-prevnext {
  justify-content: center;
}

/* D9: iPad portrait, three equal chips in one row. */
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 501px), (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .kn-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
  }

  .kn-chip {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 8px;
    text-align: center;
  }

  .kn-chip-copy {
    align-items: center;
    min-width: 0;
  }

  .kn-chip-label {
    font-size: 14px;
    line-height: 18px;
  }

  .kn-chip-value {
    font-size: 17px;
    line-height: 21px;
    white-space: normal;
  }
}

/* Lead fix (re-test): % padding resolved against the card width and squashed the icon to ~16px. */
.kn-sig-icon { padding: 6px !important; object-fit: contain; }

/* Pass 2 (L2): the large hero render already shows the class art on wide screens,
   so the banner copy is hidden there; the render keeps its "Concept art" tag at every width. */
@media (min-width: 1024px) and (min-height: 501px) {
  .pbn-pic.kn-banner {
    display: none;
  }
}
