/* Ryoke Family & Living Bookmark Board - Horizontal Band & Chip Ribbon Architecture */
:root {
  --rk-bg: #faf9f5;
  --rk-white: #ffffff;
  --rk-sand: #f2efe9;
  --rk-teal: #134e4a;
  --rk-teal-mid: #0f766e;
  --rk-mint-bg: #e6f7f5;
  --rk-coral: #ea583c;
  --rk-coral-soft: #fff1ed;
  --rk-ink: #1c2423;
  --rk-gray: #576361;
  --rk-border: #dedad0;
  --rk-line-soft: #ebe8e0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background-color: var(--rk-bg);
  color: var(--rk-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* Top Utility Bar */
.rk-util-bar {
  background: var(--rk-teal);
  color: #e2f5f2;
  font-size: 0.78rem;
  padding: 0.42rem 1.2rem;
}

.rk-util-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.rk-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  margin-right: 0.4rem;
}

/* Main Navigation Header */
.rk-header {
  background: var(--rk-white);
  border-bottom: 2px solid var(--rk-teal);
  position: sticky;
  top: 0;
  z-index: 100;
}

.rk-header-box {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.rk-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.rk-logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--rk-border);
}

.rk-logo-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--rk-teal);
  letter-spacing: -0.025em;
}

.rk-logo-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--rk-gray);
}

.rk-gnb {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.rk-gnb a {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rk-ink);
  padding: 0.42rem 0.78rem;
  border-radius: 8px;
  background: var(--rk-bg);
  border: 1px solid var(--rk-border);
  transition: all 0.15s ease;
}

.rk-gnb a:hover,
.rk-gnb a.rk-on {
  background: var(--rk-coral);
  border-color: var(--rk-coral);
  color: #ffffff;
}

/* Hero Banner */
.rk-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--rk-sand) 100%);
  border-bottom: 1px solid var(--rk-border);
  padding: 2rem 1.2rem 1.65rem;
}

.rk-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.rk-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.rk-tag-coral {
  background: var(--rk-coral-soft);
  color: var(--rk-coral);
  border: 1px solid #f8c6bc;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.rk-tag-mint {
  background: var(--rk-mint-bg);
  color: var(--rk-teal);
  border: 1px solid #bce6e0;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
}

.rk-hero h1 {
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 800;
  color: var(--rk-teal);
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.rk-hero-def {
  font-size: 0.96rem;
  color: #2f3b39;
  max-width: 980px;
  margin-bottom: 1.15rem;
}

/* Control Console: Internal Jump Buttons + Search + View Toggle */
.rk-console {
  background: var(--rk-white);
  border: 2px solid var(--rk-teal);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  box-shadow: 0 6px 18px rgba(19, 78, 74, 0.06);
}

.rk-search-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 260px;
}

.rk-search-field {
  flex: 1;
  border: 1px solid var(--rk-border);
  border-radius: 8px;
  padding: 0.52rem 0.85rem;
  font-size: 0.92rem;
  outline: none;
  color: var(--rk-ink);
  background: var(--rk-bg);
}

.rk-search-field:focus {
  border-color: var(--rk-teal-mid);
  background: #ffffff;
}

.rk-btn-clear {
  background: var(--rk-sand);
  border: 1px solid var(--rk-border);
  color: var(--rk-ink);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
}

.rk-action-jumps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rk-jump-coral {
  background: var(--rk-coral);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
}

.rk-jump-teal {
  background: var(--rk-teal);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.52rem 0.95rem;
  border-radius: 8px;
}

.rk-mode-btn {
  background: var(--rk-mint-bg);
  border: 1px solid #99d8cf;
  color: var(--rk-teal);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.82rem;
  border-radius: 8px;
  cursor: pointer;
}

/* 19-Sector Horizontal Numbered Jump Ribbon */
.rk-index-strip {
  max-width: 1320px;
  margin: 1.2rem auto 0;
  padding: 0 1.2rem;
}

.rk-index-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  background: var(--rk-white);
  border: 1px solid var(--rk-border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.rk-idx-chip {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--rk-teal);
  background: var(--rk-bg);
  border: 1px solid var(--rk-line-soft);
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  transition: all 0.12s ease;
}

.rk-idx-chip:hover {
  background: var(--rk-teal);
  color: #ffffff;
}

/* Main One-View Striped Band Board */
.rk-board-wrap {
  max-width: 1320px;
  margin: 1.25rem auto 3rem;
  padding: 0 1.2rem;
  scroll-margin-top: 78px;
}

.rk-band-stack {
  background: var(--rk-white);
  border: 1px solid var(--rk-border);
  border-radius: 14px;
  overflow: hidden;
}

.rk-band {
  display: grid;
  grid-template-columns: 240px 1fr;
  border-bottom: 1px solid var(--rk-line-soft);
  scroll-margin-top: 82px;
}

.rk-band:last-child { border-bottom: none; }

.rk-band:nth-child(even) { background: #fcfbf9; }

.rk-band-side {
  padding: 1.05rem 1.15rem;
  border-right: 1px solid var(--rk-line-soft);
  background: rgba(242, 239, 233, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rk-band-no {
  display: inline-block;
  width: fit-content;
  font-size: 0.71rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--rk-teal-mid);
  padding: 0.1rem 0.46rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

.rk-band-side h2 {
  font-size: 0.99rem;
  font-weight: 800;
  color: var(--rk-teal);
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.rk-band-caption {
  font-size: 0.76rem;
  color: var(--rk-gray);
  margin-top: 0.22rem;
}

/* Right Column: Multi-Chip Direct Launch Grid */
.rk-pill-grid {
  list-style: none;
  padding: 0.9rem 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  gap: 0.6rem;
  align-content: center;
}

.rk-pill-item a {
  display: flex;
  flex-direction: column;
  padding: 0.58rem 0.78rem;
  border-radius: 9px;
  background: var(--rk-white);
  border: 1px solid var(--rk-border);
  transition: border-color 0.14s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.rk-pill-item a:hover {
  border-color: var(--rk-coral);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(234, 88, 60, 0.1);
}

.rk-pill-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.rk-pill-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rk-ink);
}

.rk-pill-host {
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--rk-teal-mid);
  background: var(--rk-mint-bg);
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.rk-pill-desc {
  font-size: 0.77rem;
  color: var(--rk-gray);
  margin-top: 0.2rem;
  line-height: 1.38;
}

/* Compact Mode Toggle Class */
body.rk-compact .rk-pill-desc {
  display: none;
}

body.rk-compact .rk-pill-grid {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.45rem;
}

/* Synonym & Verification Info Section */
.rk-info-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  scroll-margin-top: 82px;
}

.rk-info-card {
  background: var(--rk-white);
  border: 1px solid var(--rk-border);
  border-radius: 12px;
  padding: 1.35rem 1.4rem;
}

.rk-info-card h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--rk-teal);
  margin-bottom: 0.55rem;
}

.rk-info-card p {
  font-size: 0.87rem;
  color: #384442;
  line-height: 1.65;
}

.rk-check-ul {
  margin-top: 0.6rem;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: #384442;
}

.rk-check-ul li { margin-bottom: 0.3rem; }

/* Subpage Styles */
.rk-sub-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.7rem 1.2rem 3.2rem;
}

.rk-breadcrumb {
  font-size: 0.82rem;
  color: var(--rk-gray);
  margin-bottom: 0.9rem;
}

.rk-breadcrumb a {
  color: var(--rk-teal);
  font-weight: 700;
}

.rk-doc-panel {
  background: var(--rk-white);
  border: 1px solid var(--rk-border);
  border-radius: 14px;
  padding: 1.5rem;
}

.rk-table-box {
  overflow-x: auto;
  margin: 1.15rem 0 1.5rem;
  border: 1px solid var(--rk-border);
  border-radius: 10px;
}

.rk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rk-table th {
  background: var(--rk-teal);
  color: #ffffff;
  text-align: left;
  padding: 0.78rem 0.95rem;
  font-weight: 700;
}

.rk-table td {
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--rk-line-soft);
}

.rk-table tr:nth-child(even) td { background: #faf9f5; }

.rk-open-btn {
  display: inline-block;
  background: var(--rk-coral);
  color: #ffffff;
  font-size: 0.77rem;
  font-weight: 700;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
}

.rk-open-btn:hover { background: var(--rk-teal); }

/* Footer */
.rk-footer {
  background: #103835;
  color: #bdd6d2;
  padding: 2.1rem 1.2rem;
  font-size: 0.82rem;
}

.rk-footer-box {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.rk-footer strong { color: #ffffff; }

.rk-footer-links {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.rk-footer-links a { color: #dcf2ee; }
.rk-footer-links a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .rk-band { grid-template-columns: 1fr; }
  .rk-band-side {
    border-right: none;
    border-bottom: 1px solid var(--rk-line-soft);
    padding: 0.85rem 1.05rem;
  }
  .rk-info-grid { grid-template-columns: 1fr; }
}
