
:root {
  --rkd-navy: #102d52;
  --rkd-blue: #1464c9;
  --rkd-blue-dark: #0c4d9d;
  --rkd-gold: #d3a62e;
  --rkd-line: #dfe6ef;
  --rkd-soft: #f4f7fb;
  --rkd-muted: #66758a;
  --rkd-text: #17283b;
}

.rkdocs,
.rkdocs * {
  box-sizing: border-box;
}

.rkdocs {
  color: var(--rkd-text);
}

.rkdocs h1,
.rkdocs h2,
.rkdocs h3 {
  color: var(--rkd-navy);
  margin: 0;
}

.rkdocs-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 30px;
  padding: 0 0 22px;
  border-bottom: 3px solid var(--rkd-navy);
}

.rkdocs-page-title {
  min-width: 0;
}

.rkdocs-eyebrow,
.rkdocs-back {
  display: inline-block;
  margin: 0 0 9px;
  color: var(--rkd-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.rkdocs-back:hover,
.rkdocs-back:focus {
  color: var(--rkd-gold);
}

.rkdocs-page-head h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .96;
}

.rkdocs-page-head p {
  max-width: 760px;
  margin: 13px 0 0;
  color: var(--rkd-muted);
  font-size: 15px;
  line-height: 1.65;
}

.rkdocs-head-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 0 0 auto;
  min-width: 112px;
  padding: 12px 14px 10px;
  background: var(--rkd-navy);
  color: #fff;
  border-bottom: 5px solid var(--rkd-gold);
}

.rkdocs-head-stat strong {
  display: block;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: .9;
}

.rkdocs-head-stat span {
  margin-top: 6px;
  color: #dce7f5;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.rkdocs-category-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 42px;
}

.rkdocs-category-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 58px;
  padding: 13px 14px 13px 16px;
  background: #fff;
  border: 1px solid var(--rkd-line);
  border-left: 5px solid var(--rkd-blue);
  color: var(--rkd-navy);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.rkdocs-category-nav a:hover,
.rkdocs-category-nav a:focus {
  background: var(--rkd-soft);
  border-left-color: var(--rkd-gold);
  transform: translateY(-2px);
}

.rkdocs-category-name {
  min-width: 0;
  padding-right: 10px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rkdocs-category-count,
.rkdocs-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  background: var(--rkd-gold);
  color: #102d52;
  font-size: 12px;
  font-weight: 900;
}

.rkdocs-section {
  margin: 0 0 46px;
  scroll-margin-top: 120px;
}

.rkdocs-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  padding-bottom: 11px;
  border-bottom: 2px solid var(--rkd-navy);
}

.rkdocs-section-titleline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rkdocs-section-head h2 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -.025em;
}

.rkdocs-section-head p {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--rkd-muted);
  font-size: 14px;
}

.rkdocs-section-count {
  min-width: 26px;
  height: 26px;
  font-size: 11px;
}

.rkdocs-category-link {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--rkd-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
}

.rkdocs-category-link:hover,
.rkdocs-category-link:focus {
  color: var(--rkd-gold);
}

.rkdocs-list {
  display: grid;
  gap: 8px;
}

.rkdocs-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--rkd-line);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.rkdocs-row:hover {
  border-color: #c7d4e4;
  box-shadow: 5px 0 0 var(--rkd-gold) inset;
  transform: translateX(2px);
}

.rkdocs-ext {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  background: var(--rkd-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.rkdocs-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 14px 18px;
}

.rkdocs-main h3 {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.28;
}

.rkdocs-main > p {
  margin: 4px 0 0;
  color: var(--rkd-muted);
  font-size: 13px;
  line-height: 1.45;
}

.rkdocs-docinfo {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: var(--rkd-muted);
  font-size: 11px;
}

.rkdocs-docinfo > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.rkdocs-docinfo-label {
  color: #8a98aa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rkdocs-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 126px;
  padding: 0 18px;
  background: var(--rkd-soft);
  border-left: 1px solid var(--rkd-line);
  color: var(--rkd-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}

.rkdocs-download:hover,
.rkdocs-download:focus {
  background: var(--rkd-blue);
  color: #fff;
}

.rkdocs-download-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  background: var(--rkd-gold);
  color: var(--rkd-navy);
  font-size: 14px;
  font-weight: 900;
}

.rkdocs-list-category {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .rkdocs-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .rkdocs-page-head {
    align-items: stretch;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 16px;
  }

  .rkdocs-page-head h1 {
    font-size: 38px;
  }

  .rkdocs-page-head p {
    font-size: 14px;
  }

  .rkdocs-head-stat {
    min-width: 92px;
    padding: 10px 11px 8px;
  }

  .rkdocs-head-stat strong {
    font-size: 25px;
  }

  .rkdocs-category-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 32px;
  }

  .rkdocs-category-nav a {
    min-height: 54px;
    padding: 10px 10px 10px 12px;
  }

  .rkdocs-category-name {
    font-size: 12px;
  }

  .rkdocs-section {
    margin-bottom: 34px;
  }

  .rkdocs-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .rkdocs-section-head h2 {
    font-size: 22px;
  }

  .rkdocs-category-link {
    padding-bottom: 0;
  }

  .rkdocs-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rkdocs-ext {
    grid-row: 1 / span 2;
    min-height: 96px;
  }

  .rkdocs-main {
    padding: 12px 13px 9px;
  }

  .rkdocs-main h3 {
    font-size: 15px;
  }

  .rkdocs-main > p {
    font-size: 12px;
  }

  .rkdocs-docinfo {
    gap: 10px;
    margin-top: 7px;
  }

  .rkdocs-download {
    grid-column: 2;
    justify-content: space-between;
    min-width: 0;
    min-height: 42px;
    padding: 7px 13px;
    border-top: 1px solid var(--rkd-line);
    border-left: 0;
  }
}

@media (max-width: 430px) {
  .rkdocs-page-head {
    display: block;
  }

  .rkdocs-head-stat {
    display: inline-flex;
    align-items: baseline;
    flex-direction: row;
    gap: 7px;
    margin-top: 16px;
  }

  .rkdocs-head-stat strong {
    font-size: 22px;
  }

  .rkdocs-head-stat span {
    margin-top: 0;
  }

  .rkdocs-category-nav {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rkdocs-row,
  .rkdocs-category-nav a,
  .rkdocs-download {
    transition: none;
  }

  .rkdocs-row:hover,
  .rkdocs-category-nav a:hover {
    transform: none;
  }
}


/* === RK Docs 0.1.3: compact frontend refinement === */
.rkdocs-page-head {
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.rkdocs-page-title {
  padding: 0;
}

.rkdocs-eyebrow,
.rkdocs-back {
  margin-bottom: 5px;
  font-size: 10px;
  letter-spacing: .12em;
}

.rkdocs-page-head h1 {
  margin: 0 !important;
  font-size: clamp(34px, 4vw, 48px) !important;
  line-height: 1 !important;
  letter-spacing: -.035em;
}

.rkdocs-page-head p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.rkdocs-head-stat {
  min-width: 92px;
  padding: 9px 11px 8px;
  border-bottom-width: 4px;
}

.rkdocs-head-stat strong {
  font-size: 24px;
}

.rkdocs-head-stat span {
  margin-top: 4px;
  font-size: 8px;
}

.rkdocs-category-nav {
  gap: 7px;
  margin-bottom: 28px;
}

.rkdocs-category-nav a {
  min-height: 46px;
  padding: 9px 10px 9px 12px;
  border-left-width: 4px;
}

.rkdocs-category-name {
  font-size: 11px;
}

.rkdocs-category-count,
.rkdocs-section-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  font-size: 10px;
}

.rkdocs-section {
  margin-bottom: 30px;
}

.rkdocs-section-head {
  gap: 14px;
  margin-bottom: 9px;
  padding-bottom: 8px;
}

.rkdocs-section-head h2 {
  font-size: 20px !important;
  line-height: 1.1;
}

.rkdocs-section-head p {
  margin-top: 3px;
  font-size: 12px;
}

.rkdocs-section-count {
  min-width: 21px;
  height: 21px;
  font-size: 9px;
}

.rkdocs-category-link {
  font-size: 10px;
}

.rkdocs-list {
  gap: 5px;
}

.rkdocs-row {
  grid-template-columns: 52px minmax(0, 1fr) 104px;
  min-height: 58px;
}

.rkdocs-row:hover {
  box-shadow: 4px 0 0 var(--rkd-gold) inset;
  transform: translateX(1px);
}

.rkdocs-ext {
  min-height: 58px;
  font-size: 9px;
}

.rkdocs-main {
  padding: 9px 13px;
}

.rkdocs-main h3 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1.22;
}

.rkdocs-main > p {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.rkdocs-docinfo {
  gap: 10px;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.2;
}

.rkdocs-docinfo-label {
  font-size: 8px;
}

.rkdocs-download {
  min-width: 104px;
  padding: 0 10px;
  gap: 8px;
  font-size: 9px;
}

.rkdocs-download-arrow {
  width: 22px;
  height: 22px;
  font-size: 12px;
}

@media (max-width: 680px) {
  .rkdocs-page-head {
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .rkdocs-page-head h1 {
    font-size: 32px !important;
  }

  .rkdocs-page-head p {
    font-size: 12px;
  }

  .rkdocs-category-nav {
    margin-bottom: 24px;
  }

  .rkdocs-section {
    margin-bottom: 26px;
  }

  .rkdocs-section-head h2 {
    font-size: 19px !important;
  }

  .rkdocs-row {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 0;
  }

  .rkdocs-ext {
    min-height: 78px;
    font-size: 8px;
  }

  .rkdocs-main {
    padding: 9px 10px 7px;
  }

  .rkdocs-main h3 {
    font-size: 13px !important;
  }

  .rkdocs-main > p {
    font-size: 10px;
  }

  .rkdocs-download {
    min-height: 36px;
    padding: 5px 10px;
    font-size: 9px;
  }
}

@media (max-width: 430px) {
  .rkdocs-page-head h1 {
    font-size: 30px !important;
  }

  .rkdocs-head-stat {
    margin-top: 10px;
    padding: 7px 9px 6px;
  }

  .rkdocs-head-stat strong {
    font-size: 20px;
  }
}
