/* static/css/custom-drafts.css
   The custom development page (.cb). Builds on home-drafts.css. The rules
   for the commented-out C3S highlight stay, so it can be restored. */

/* Reference logo tiles */

.ref-logo {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #e6dccb;
  border-radius: 14px;
  background: #fff;
}

.ref-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.ref-logo--dark {
  border-color: #101b30;
  background: #101b30;
}

.ref-logo--text {
  font-family: "Bricolage Grotesque", "Instrument Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #101b30;
}

.ref-logo--sm {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.ref-logo--sm.ref-logo--text {
  font-size: 12px;
}

.cb .ref-logo {
  border-color: rgba(255, 255, 255, 0.12);
}

.cb .ref-logo--text {
  background: rgba(255, 255, 255, 0.06);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}

/* ================================================================
   EGYEDI B — "Csillagtérkép" (dark, .mb family)
   ================================================================ */

.cb-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(64px, 8vw, 112px);
}

.cb .mb-h1 {
  font-size: clamp(50px, 6.6vw, 96px);
}

.cb-map {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cb-map__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.2;
}

.cb-map__ring--warm {
  stroke: rgba(255, 165, 61, 0.4);
  stroke-dasharray: 3 8;
}

.cb-map__ring-label {
  fill: rgba(163, 174, 196, 0.9);
  font-family: "Instrument Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.cb-map__core {
  fill: rgba(255, 165, 61, 0.08);
  stroke: rgba(255, 165, 61, 0.45);
}

.cb-map__core-text {
  fill: #ffd9a6;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.cb-map__halo {
  fill: rgba(255, 165, 61, 0.18);
}

.cb-map__dot {
  fill: #ffa53d;
}

.cb-map__name {
  fill: #eef1f7;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
}

.cb-map__sub {
  fill: #a3aec4;
  font-family: "Instrument Sans", sans-serif;
  font-size: 13px;
}

/* Featured space reference */

.cb-feature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 165, 61, 0.18), transparent 50%),
    rgba(255, 255, 255, 0.03);
}

.cb-feature h2 {
  margin: 0 0 16px;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.9;
}

.cb-feature__task {
  max-width: 30em;
  margin-bottom: 26px !important;
  font-size: 20px;
  line-height: 1.5;
  color: #d4dae6 !important;
}

.cb-feature__space {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  font-size: 15px;
}

.cb-feature__space img {
  width: auto;
  height: 52px;
}

.cb-feature__art {
  width: 100%;
  max-width: 340px;
  height: auto;
  justify-self: center;
}

.cb-feature__art circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
}

.cb-feature__art .warm {
  stroke: rgba(255, 165, 61, 0.45);
  stroke-dasharray: 2 7;
}

.cb-feature__art .star {
  filter: drop-shadow(0 0 14px rgba(255, 196, 120, 0.9));
}

/* Reference list */

.cb-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cb-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.1fr) minmax(0, 1.6fr) 44px;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cb-row h3 {
  margin: 0 0 4px;
  font-size: 32px;
  line-height: 1;
}

.cb-row__field {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber) !important;
}

.cb-row__task {
  margin-bottom: 10px !important;
  font-size: 16.5px;
  line-height: 1.5;
  color: #d4dae6 !important;
}

.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cb-chips li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}

.cb-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: rgba(255, 165, 61, 0.16);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
  vertical-align: middle;
  color: #ffc27a;
}

.cb-row__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cb-row__link:hover {
  background: var(--amber);
  color: #1a0f02;
}

.cb-row__link .hd-icon {
  width: 18px;
  height: 18px;
  transform: rotate(-45deg);
}

/* Quotes */

.cb-quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cb-quote {
  margin: 0;
  padding: clamp(28px, 3.4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
}

.cb-quote blockquote {
  margin: 0 0 26px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(26px, 2.6vw, 36px);
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
}

.cb-quote blockquote::before {
  content: "\201E";
  color: var(--amber);
}

.cb-quote blockquote::after {
  content: "\201D";
  color: var(--amber);
}

/* English quotation marks open high: “…” */
.cb-quote blockquote:lang(en)::before {
  content: "\201C";
}

.cb-quote figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--muted);
}

.cb-quote figcaption strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.cb-quote figcaption a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.25);
  text-underline-offset: 3px;
}

.cb-quote figcaption a:hover {
  color: var(--text);
}

.cb-quote--wide {
  grid-column: 1 / -1;
}

/* Layers */

.cb .mb-app .hd-icon {
  display: block;
}

.cb .mb-app__tag {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cb .mb-app__refs {
  margin-top: 14px !important;
  font-size: 14px;
}

.cb .mb-app__refs strong {
  color: var(--amber);
}

.cb .mb-apps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cb-route {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* People */

.cb-people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.cb-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.cb-person img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.cb-person strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.cb-person span {
  font-size: 14px;
  color: var(--muted);
}

/* Egyedi B — responsive */

@media (max-width: 1000px) {
  .cb .mb-apps {
    grid-template-columns: 1fr;
  }

  .cb .mb-app,
  .cb .mb-app + .mb-app {
    padding: 28px 0 8px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .cb .mb-app:first-child {
    border-top: 0;
  }

  .cb-route,
  .cb-people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-route::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .cb-hero__grid,
  .cb-feature,
  .cb-quotes,
  .cb-people {
    grid-template-columns: 1fr;
  }

  .cb-row {
    grid-template-columns: 48px minmax(0, 1fr) 44px;
    gap: 16px 18px;
  }

  .cb-row > :nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .cb-route {
    grid-template-columns: 1fr;
  }

  .cb-route::before {
    display: block;
  }
}

@media (max-width: 560px) {
  .cb-map__sub {
    display: none;
  }
}
