/* =========================================================
   CURSORPUNK CSS
   Architecture Refactor
   ---------------------------------------------------------
   Sections
   01 Reset / Base
   02 Design Tokens
   03 Layout
   04 Header
   05 Hero
   06 Cards / Masonry
   07 Responsive
   08 Single Article
   09 Editor UI
   10 Components
   11 Effects
   12 Footer
========================================================= */


/* =========================================================
   01 RESET / BASE
========================================================= */


/* =========================================================
   02 DESIGN TOKENS
========================================================= */

:root {
  /* ----- Core Colors ----- */

  --bg: #000314;

  --brand-yellow: #ffc233;
  --link-cyan: #16f2ff;
  --accent-magenta: #ff2da8;
  --cp-dark-cyan: #096f7e;
  --cp-dark-magenta: #8b145e;
  --cp-gray: #737373;

  --white: #ffffff;
  --black: #000000;
  /* ======================================================
     CGA 16 COLOR PALETTE
  ====================================================== */

  --CGA_fekete: #000000;
  --CGA_kek: #0000aa;
  --CGA_zold: #00aa00;
  --CGA_cyan: #00aaaa;
  --CGA_piros: #aa0000;
  --CGA_bibor: #aa00aa;
  --CGA_barna: #aa5500;
  --CGA_vilagos_szurke: #aaaaaa;

  --CGA_sotet_szurke: #555555;
  --CGA_vilagos_kek: #5555ff;
  --CGA_vilagos_zold: #55ff55;
  --CGA_vilagos_cyan: #55ffff;
  --CGA_vilagos_piros: #ff5555;
  --CGA_vilagos_bibor: #ff55ff;
  --CGA_sarga: #ffff55;
  --CGA_feher: #ffffff;



  /* ======================================================
     C64 16 COLOR PALETTE
  ====================================================== */

  --C64_fekete: #000000;
  --C64_feher: #ffffff;
  --C64_piros: #883932;
  --C64_cyan: #67b6bd;
  --C64_bibor: #8b3f96;
  --C64_zold: #55a049;
  --C64_kek: #40318d;
  --C64_sarga: #bfce72;

  --C64_narancs: #8b5429;
  --C64_barna: #574200;
  --C64_vilagos_piros: #b86962;
  --C64_sotet_szurke: #505050;
  --C64_kozep_szurke: #787878;
  --C64_vilagos_zold: #94e089;
  --C64_vilagos_kek: #7869c4;
  --C64_vilagos_szurke: #9f9f9f;
  /* ----- Layout ----- */

  --maxw: 1280px;

}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  font: 500 22px/1.2 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;


}

body {
  margin: 0;

  background: var(--bg);
  color: var(--white);

  text-rendering: optimizeLegibility;
  letter-spacing: 0.026em;
}

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

h1 {
  line-height: .8;
}

/* =========================================================
   TEXT SELECTION
========================================================= */

::selection {
  background: var(--brand-yellow);
  color: black;
  text-shadow: none;
}

::-moz-selection {
  background: var(--brand-yellow);
  color: black;
  text-shadow: none;
}



/* =========================================================
   03 LAYOUT
========================================================= */

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 18px;
}


/* =========================================================
   DIVIDER LINES
========================================================= */

.rule,
.rule--aside,
.rule--small {
  height: 3px;
  border: 0;
  background: var(--accent-magenta);
  width: 100%;
}

.rule {
  margin: 18px 0;
}

.rule--aside {
  margin: 0 0 18px 0;
}

.rule--small {
  margin: 0;
}



/* =========================================================
   04 HEADER
========================================================= */

.site-header {
  background: transparent;
  padding-top: 18px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav .inner {
  max-width: var(--maxw);
  margin-inline: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;

  align-items: center;
  gap: 28px;

  position: relative;
  padding-bottom: 0px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
  font-family: 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;

  -webkit-font-smoothing: antialiased;

  color: var(--brand-yellow);
  font-weight: 700;
  letter-spacing: 1.16px;

  font-size: var(--brand-font-size, 38px);
  display:inline-block;
  position:relative;
  height:42px;
  line-height:1;
  overflow:visible;

}

.brand__text,
.brand__cursor{
  position:relative;
  top:var(--brand-y-offset, 0px);
}

.brand__char,
.brand__text,
.brand__text span{
  display:inline-block;
}

html.is-chrome:not(.smooth-font),
html.is-chrome:not(.smooth-font) body,
html.is-chrome:not(.smooth-font) h1,
html.is-chrome:not(.smooth-font) h2,
html.is-chrome:not(.smooth-font) h3,
html.is-chrome:not(.smooth-font) .brand,
html.is-chrome:not(.smooth-font) .hero-title,
html.is-chrome:not(.smooth-font) .single-body,
html.is-chrome:not(.smooth-font) .sidebar-title {
  font-weight: 500;
}




/* =========================================================
   MENU
========================================================= */

.menu {
  display: flex;
  gap: 32px;

  list-style: none;
  padding: 0;
  margin: 0;

  justify-self: end;
  text-align: right;
}

.menu a {
  color: var(--link-cyan);
}

.menu a:hover,
.menu a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}



/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.lang {
  color: var(--accent-magenta);
  text-decoration: none;

  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;

  padding: 2px 0;
  justify-self: end;
}

.lang-static {
  cursor: default;
}

.lang-picker {
  position: relative;
}

.lang-picker summary {
  align-items:center;
  display:inline-flex;
  list-style: none;
  cursor: pointer;
  outline:none;
}

.lang-picker summary::-webkit-details-marker {
  display: none;
}

.lang-picker__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  min-width: 54px;
  padding: 5px;
  background: #000314;
  border: 1px solid var(--accent-magenta);
  box-shadow:
    0 0 0 1px #000314,
    0 8px 18px rgba(0, 0, 0, .45);
}

.lang-picker__option {
  display: block;
  color: var(--brand-yellow);
  font-weight: 700;
  letter-spacing: .6px;
  line-height: 1.2;
  padding: 4px 7px;
  text-align: center;
  text-decoration:none;
  text-transform: uppercase;
}

.lang-picker__option:hover,
.lang-picker__option:focus {
  background:var(--accent-magenta);
  color:#000314;
  outline:none;
}

.lang-picker[open] summary {
  color:var(--brand-yellow);
}

/* =========================================================
   HEADER CONTROLS
========================================================= */

.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
  bottom: 3px;
  position: relative;
}



/* =========================================================
   ICON BUTTONS
========================================================= */

.icon-btn,
.font-btn {

  background: none;
  border: none;

  cursor: pointer;

  color: var(--link-cyan);

  font-size: 20px;
  padding: 4px;

  display: flex;
  align-items: center;

  transition: 0.2s ease;
}

.icon-btn:hover,
.font-btn:hover {
  color: var(--accent-magenta);
}

.media-mode-btn.is-active {
  color: var(--accent-magenta);
}

.media-mode-btn.is-disabled,
.media-mode-btn:disabled {
  cursor: default;
  opacity: .45;
}

.site-switcher-form {
  display: flex;
  align-items: center;
  color: var(--brand-yellow);
  margin: 0;
}

.site-switcher-form::before {
  content: "[";
}

.site-switcher-form::after {
  content: "]";
}

.site-switcher-select {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--brand-yellow);
  cursor: pointer;
  font-family: inherit;
  font-size: 20px;
  padding: 4px 2px;
  text-decoration: underline;
}

.site-switcher-select:focus {
  outline: 1px solid var(--brand-yellow);
  outline-offset: 3px;
}

.site-switcher-select option {
  background: var(--C64_fekete);
  color: var(--brand-yellow);
}

.media-mode-btn.is-disabled:hover,
.media-mode-btn:disabled:hover {
  color: var(--link-cyan);
}


/* =========================================================
   ICONS
========================================================= */

.icon {
  width: 20px;
  height: 20px;

  fill: currentColor;
  stroke: currentColor;
}

.icon-moon {
  display: none;
}


/* =========================================================
   FONT TOGGLE
========================================================= */

.font-btn {
  font: 500 22px/1.2 'geos', ui-monospace, SFMono-Regular, Menlo, Consolas,
        "Liberation Mono", "Courier New", monospace;

  -webkit-font-smoothing: antialiased;

  font-size: 22px;
  font-weight: 700;
}

/* =========================================================
   05 HERO SYSTEM
========================================================= */

.hero {
  position: relative;
  margin-top: 0;
}


/* =========================================================
   HERO GRID
========================================================= */

.hero > .inner {

  /*max-width: var(--maxw);*/
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr .85fr;

  gap: 18px;
  align-items: stretch;
}


/* =========================================================
   HERO TEXT
========================================================= */

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}



/* BADGE */

.badge {
  align-self: flex-start;

  font-size: 20px;
  color: #000;

  background: var(--accent-magenta);

  padding: 1px 7px;
  border: none;
  border-radius: 0;
}


/* TITLE */

.hero-title {
  margin: 0;
  color: var(--cp-title-color, var(--brand-yellow));
  line-height: 38px;
}

body.view-list .hero-title {
  color: var(--cp-list-title-color, var(--cp-title-color, var(--brand-yellow)));
}

body.view-single .single-main .hero-title {
  color: var(--cp-single-title-color, var(--cp-title-color, var(--brand-yellow)));
}

body.view-single .single-sidebar .hero-suggestion,
body.view-single .single-sidebar .sidebar-title,
body.view-single .single-sidebar .sidebar-title a {
  color: var(--cp-related-title-color, var(--cp-title-color, var(--brand-yellow)));
}


/* META */

.hero-meta {
  margin: 2px 0 0;
  color: var(--link-cyan);
  font-size: 24px;
}

.single-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.single-hero-meta-text {
  min-width: 0;
}

.single-hero-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.reader-copy-status {
  color: var(--brand-yellow);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translateX(4px);
  transition: opacity 120ms linear, transform 120ms linear;
}

.reader-copy-status.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reader-tool-btn {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--brand-yellow);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.reader-tool-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reader-tool-btn:hover,
.reader-tool-btn:focus-visible,
.reader-tool-btn.is-active,
.reader-tool-btn.is-copied {
  color: #000;
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
  outline: none;
}

.reader-tool-btn.is-active svg {
  fill: currentColor;
}

@media (max-width: 640px) {
  .single-hero-meta {
    align-items: flex-start;
  }
}


/* LEDE */

.hero-lede {
  margin: 0;
  color: var(--C64_feher);

  font-size: clamp(20px, 1.8vw, 24px);
}

.hero-author-inline {
  display: inline-block;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-media {

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  height: 100%;

  border: none;
  box-shadow: none;
}



/* =========================================================
   HERO RATIO MODE
========================================================= */

.hero.hero--ratio > .inner {
  align-items: start;
}

.hero.hero--ratio .hero-media {

  aspect-ratio: 16 / 9;
  height: auto;
}

.hero.hero--natural-ratio {
  background-size: contain;
}

.hero.hero--natural-ratio .hero-media {
  aspect-ratio: var(--hero-aspect);
  background-size: contain;
}

/* =========================================================
   HERO IMAGE FALLBACK
========================================================= */

.hero.hero-fallback {

  max-height: 400px;
  min-height: 260px;

  position: relative;
  overflow: hidden;

  background:
    radial-gradient(circle at 20% 30%, rgba(255,0,150,.18), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(0,255,255,.12), transparent 45%),
    linear-gradient(180deg, #05000f 0%, #000314 100%);
}


.hero.hero-fallback::before {

  content: "";
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      120deg,
      rgba(255,0,180,.06),
      rgba(0,255,255,.04),
      rgba(255,180,0,.05)
    );

  mix-blend-mode: screen;
  pointer-events: none;
}


.hero.hero-fallback::after {

  content: "";
  position: absolute;
  inset: -20%;

  background:
    radial-gradient(circle at 30% 40%, rgba(255,0,160,.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(0,255,255,.07), transparent 50%);

  animation: fogMove 18s linear infinite;

  pointer-events: none;
}



/* =========================================================
   HERO HEIGHT DEBUG
========================================================= */

.hero-height-badge {

  position: absolute;
  top: 6px;
  right: 6px;

  background: rgba(0,0,0,0.75);

  color: #00ff99;

  font-size: 12px;
  padding: 3px 6px;

  border-radius: 4px;

  font-family: monospace;

  z-index: 50;
  pointer-events: none;
}



/* =========================================================
   HERO DEBUG BADGE
========================================================= */

.debug-badge {

  position: absolute;
  top: 12px;
  left: 12px;

  color: var(--brand-yellow);

  font-size: 20px;
  font-weight: 800;

  z-index: 10;

  pointer-events: none;

  background: none;
  padding: 0;

  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}



/* =========================================================
   HERO ANIMATIONS
========================================================= */

@keyframes fogMove {

  0%   { transform: translateX(0) translateY(0); }

  50%  { transform: translateX(-4%) translateY(3%); }

  100% { transform: translateX(0) translateY(0); }
}

/* =========================================================
   06 CARDS / MASONRY
========================================================= */


/* =========================================================
   MASONRY SYSTEM (CSS COLUMNS)
========================================================= */

.cards .card--separator {

  columns: 1;
  column-gap: 18px;

}

.cards .card--separator > .hero {

  break-inside: avoid-column;
  margin-bottom: 18px;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  overflow: hidden;

}

.cards .card--separator > .hero > .inner {

  max-width: 100%;
  margin-inline: 0;
  min-width: 0;

}


/* =========================================================
   CARD TITLE SIZE
========================================================= */

.cards .hero-text .hero-title {
  font-size: 24px;
}



/* =========================================================
   RESPONSIVE MASONRY COLUMN COUNT
========================================================= */

@media (min-width: 769px) and (max-width: 1024px) {

  .cards .card--separator {
    columns: 2;
  }

}

@media (min-width: 1025px) {

  .cards .card--separator {
    columns: 3;
  }

}



/* =========================================================
   SECONDARY MASONRY SYSTEM
   (copy container – JS distributed)
========================================================= */

.masonry-copy-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  min-width: 0;

}

.masonry-col {

  display: flex;
  flex-direction: column;

  gap: 20px;
  min-width: 0;

}

.masonry-col > .hero {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.masonry-col > .hero > .inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
}

.masonry-col .hero-text,
.masonry-col .hero-title,
.masonry-col .hero-lede,
.masonry-col .hero-media {
  min-width: 0;
  max-width: 100%;
}

.masonry-col .hero-title,
.masonry-col .hero-lede {
  overflow-wrap: anywhere;
}

.text-highlight{
    font-weight:700;
    color:var(--brand-yellow);
}

.cp-mark{
    background: var(--brand-yellow);
    color: #000;
    padding-inline: 2px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.cp-inline-icon{
    display: inline-block;
    width: auto;
    height: var(--cp-inline-icon-size, 24px);
    object-fit: contain;
    vertical-align: -0.18em;
    margin: 0;
    padding: 0;
    border: 0;
}

.cp-inline-underline{
    text-decoration-line: underline;
    text-decoration-color: var(--cp-decor-color, currentColor);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.cp-inline-dotline{
    background-image: repeating-linear-gradient(
        90deg,
        var(--cp-decor-color, currentColor) 0 var(--cp-dotline-dot-width, 2px),
        transparent var(--cp-dotline-dot-width, 2px) calc(var(--cp-dotline-dot-width, 2px) + var(--cp-dotline-gap, 2px))
    );
    background-position: 0 calc(100% + var(--cp-dotline-y-offset, 0px));
    background-repeat: repeat-x;
    background-size: calc(var(--cp-dotline-dot-width, 2px) + var(--cp-dotline-gap, 2px)) var(--cp-dotline-height, 3px);
    padding-bottom: var(--cp-dotline-padding-bottom, 3px);
    text-decoration: none;
}

html[lang|="ko"] .cp-inline-dotline{
    background: none;
    color: var(--brand-yellow);
    font-weight: 900;
    padding-inline: 0;
    padding-bottom: 0;
}

.cp-inline-code{
    color: var(--brand-yellow);
}
/* =========================================================
   MASONRY BREAKPOINTS
========================================================= */

@media (min-width: 768px) {

  .masonry-copy-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 1024px) {

  .masonry-copy-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}



/* =========================================================
   MOBILE PERFORMANCE MODE
   Only first masonry column visible
========================================================= */

@media (max-width: 767px) {

  .masonry-copy-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .masonry-col:nth-child(2),
  .masonry-col:nth-child(3) {
    display: none;
  }

}



/* =========================================================
   ORIGINAL GRID HIDING
========================================================= */

.original-hidden section.hero {
  display: none !important;
}

.original-hidden .rule {
  display: none !important;
}

/* =========================================================
   07 SINGLE ARTICLE LAYOUT
========================================================= */

.single-layout {

  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);

  gap: 24px;
  width: 100%;
  min-width: 0;

}

.single-main,
.single-sidebar,
.single-body,
.cp-render-block {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}


/* MAIN HERO */

.single-main .hero {
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
}


.single-main .hero > .inner {

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 18px;

}


/* ARTICLE BODY */

.single-body {

  margin-top: 24px;
  /*line-height: 1.2;*/
  overflow-wrap: break-word;

}

.single-article-footer-meta {
  margin: 24px 0 0;
  color: #737373;
  line-height: 1.2;
}

.single-article-footer-author {
  color: #737373;
}

.cp-author-signature {
  display: block;
  margin: 34px 0 0;
  padding: 0 0 26px;
  font-family: geos, monospace;
  font-size: inherit;
  line-height: 1.1;
}

.cp-author-signature__line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: fit-content;
}

.cp-author-signature__slashes {
  margin-bottom: 8px;
  color: #737373;
  line-height: 1;
}

.cp-author-signature__label {
  margin-bottom: 8px;
  color: var(--accent-magenta);
  line-height: 1;
}

.cp-author-signature__avatar {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border: 0;
  box-sizing: border-box;
  /*image-rendering: pixelated;*/
  background: var(--black);
}

.cp-author-signature__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.cp-author-signature__name-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  width: auto;
}

.cp-author-signature__name {
  color: var(--brand-yellow);
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.cp-author-signature__cursor {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  background:
    repeating-conic-gradient(
      from 0deg,
      var(--accent-magenta) 0 25%,
      transparent 0 50%
    ) 0 0 / 4px 4px;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  image-rendering: pixelated;
  opacity: 0;
  pointer-events: none;
}

.cp-author-signature__cursor.is-visible {
  opacity: 1;
}

.cp-author-signature__bio {
  margin-top: 0;
  color: #737373;
  font-size: 0.82em;
  font-style: italic;
  line-height: 1.1;
}

/*img[src*="/multicolor/"],
img[src*="/multicolor1/"],
img[src*="/multicolor2/"],
img[src*="/hires/"],
img[src*="/cga/"] {
  filter: saturate(1.15);
}*/


/* SIDEBAR CARDS */

.single-sidebar .hero-title {

  font-size: 18px;
  line-height: 1.35;

}


/* =========================================================
   RESPONSIVE
========================================================= */


/* ===== TABLET / MOBILE LAYOUT ===== */

@media (max-width: 768px){

  .single-layout{
    grid-template-columns:1fr!important;
  }

  .single-main{
    order:1;
  }

  .single-sidebar{
    order:2;
    width:100%;
    margin-top:24px;
  }
    .single-sidebar{
    display:flex;
    flex-direction:column;
  }
  .ishero-lede {
    max-width: 100%!important;
  }

  .cp-author-signature {
    display: block;
    padding: 20px 0 22px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 27px;
  }

}



/* =========================================================
   HERO RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

 .single-main .hero{
    width:calc(100% + 36px);
    max-width:none;
    position:relative;
    left:auto;
    transform:none;
    margin-left:-18px;
    margin-right:-18px;
    border-radius:0;
  }

  .single-main .hero .inner{
    padding-left:20px;
    padding-right:20px;
  }

  .hero > .inner {
    grid-template-columns: 1fr;
  }

  .hero .hero-media {
    order: 1;
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .hero .hero-text {
    order: 2;
  }

}



/* =========================================================
   HEADER RESPONSIVE
========================================================= */

@media (max-width: 768px) {

  .nav .inner {

    display: block;
    text-align: center;

  }

  .brand {

    display: block;
    margin: 0 auto;

  }

  .brand.brand--has-cursor::before {
    content: "\2588";
    display: inline-block;
    position: relative;
    top: var(--brand-y-offset, 0px);
    visibility: hidden;
    margin-right: 2px;
    font-size: 70%;
    line-height: 1;
  }

  .menu {

    display: inline-flex;

    flex-wrap: wrap;

    justify-content: center;
    align-content: center;

    gap: 8px 20px;

    margin: 2px 0 0;

    max-width: 100%;

  }

  .menu li,
  .menu a {

    white-space: nowrap;

  }

}



/* =========================================================
   HERO DESKTOP LAYOUT
========================================================= */

@media (min-width: 769px) {

  .hero > .inner {

    grid-template-columns: .85fr 1.15fr;

  }

  .hero-media {

    order: 1;

  }

  .hero-text {

    order: 2;

  }

  .nav .inner {

    grid-template-columns: auto 1fr auto;

  }

}


/* =========================================================
   08 THEME SYSTEM
========================================================= */


/* =========================================================
   LIGHT MODE BASE
========================================================= */

html.light-mode {

  --bg: #eef1f6;
  --link-cyan: #373737;
  --accent-magenta: #c026d3;
  --brand-yellow: #373737;
  --white: #000000;

  background: #f5f5f5;
  color: #111;

}



/* =========================================================
   ICON TOGGLE
========================================================= */

.light-mode .icon-sun {
  display: none;
}

.light-mode .icon-moon {
  display: block;
}



/* =========================================================
   FONT MODE
========================================================= */

.smooth-font {

  font: 400 25px/31px 'futura-pt', 'Futura PT', Futura, 'IBM Plex Sans KR', 'cp-korean', system-ui, -apple-system, sans-serif;
  letter-spacing: normal;
  line-height: 28px;

}

.smooth-font .hero-title,
.smooth-font .sidebar-title,
.smooth-font .sidebar-title a {
  font-family: 'futura-pt-bold', 'futura-pt', 'Futura PT', Futura, 'IBM Plex Sans KR', 'cp-korean', system-ui, -apple-system, sans-serif;
  font-weight: 600;
}

.smooth-font .hero-lede,
.smooth-font .sidebar-excerpt {
  font-family: 'futura-pt', 'Futura PT', Futura, 'IBM Plex Sans KR', 'cp-korean', system-ui, -apple-system, sans-serif;
  font-weight: 400;
}

.smooth-font .single-body {
  line-height: 28px;
}



/* =========================================================
   LIGHT MODE COMPONENT OVERRIDES
========================================================= */

html.light-mode .brand {
  color: #373737;
}

html.light-mode .badge {
  color: #ffffff;
}

html.light-mode .badge-platform {
  color: var(--black);
}

html.light-mode .single-body {
  color: #373737;
}

html.light-mode .cp-footer__bottom {
  color: #373737;
}



/* =========================================================
   HERO IMAGE LAYOUTS – ALWAYS DARK
========================================================= */

html.light-mode .hero[data-mode="v2t"],
html.light-mode .single-main .hero {

  --link-cyan: #16f2ff;
  --brand-yellow: #ffc233;
  --accent-magenta: #ff2da8;
  --white: #000000;

  color: #e8ecff;

}



/* =========================================================
   LIGHT MODE RULE GRADIENT
========================================================= */

html.light-mode .rule,
html.light-mode .aside,
html.light-mode .rule--small {

  background: linear-gradient(
    90deg,
    #7c3aed 0%,
    #6366f1 50%,
    #8b5cf6 100%
  );

}

html.light-mode .hero-text-shadow_30::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(255,255,255, 0.00) 0%,
      rgba(255,255,255, 0.18) 40%,
      rgba(255,255,255, 0.75) 60%,
      rgba(255,255,255, 0.85) 90%,
      rgba(255,255,255, 0.95) 100%
  );

  border-radius: 6px;

}




/* =========================================================
   DEBUG BADGES HIDDEN IN LIGHT MODE
========================================================= */

.debug-badge,
.hero-height-badge {

  color: transparent;

  text-shadow: none;
  background: none;

}

/* GO TO editor.css */

/* =========================================================
   10 HERO FX SYSTEM
========================================================= */

#editor-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#editor-hero.hero--natural-ratio {
  width: 100%;
  height: auto;
  min-height: auto;
  flex: 0 0 auto;
  aspect-ratio: var(--hero-aspect);
  background-size: contain;
}

/* HERO BACKGROUND LAYER */

.hero-bg {

  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  z-index: 0;

}

#editor-hero .inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding-bottom: 18px;
}

/* =========================================================
   BADGE ROW FIX (single hero)
========================================================= */

.badge-row{
  display:flex;
  align-items:center;
  gap:8px; /* egységes spacing */
  flex-wrap:wrap; /* vagy nowrap ha nem akarod törni */
}

/* =========================================================
   BADGE STABILITÁS (ne törjön szét)
========================================================= */

.badge,
.badge-edit{
  white-space:nowrap;
  display:inline-block;
}

.badge-platform{
  background:var(--C64_kek);
  color:var(--black);
}

.badge-article-type{
  background:#2b2b2b;
  color:var(--brand-yellow);
}

.badge-article-type-yellow{
  background:#2b2b2b;
  color:var(--brand-yellow);
}

.badge-article-type-green{
  background:#55a049;
  color:var(--black);
}

.badge-article-type-cyan{
  background:var(--C64_cyan);
  color:var(--black);
}

.badge-article-type-blue{
  background:var(--C64_kek);
  color:var(--black);
}

.badge-article-type-magenta{
  background:var(--accent-magenta);
  color:var(--black);
}

.badge-article-type-gray{
  background:#505050;
  color:var(--white);
}

.badge-article-type-white{
  background:var(--white);
  color:var(--black);
}

/* =========================================================
   STATUS BADGE (reuse .badge alap)
========================================================= */

.badge-status{

  color: var(--white);
}

/* published */
.badge-status.status-published{
  background: var(--C64_kek);
  color: var(--C64_cyan);
}

/* =========================================================
   HERO FX PANEL
========================================================= */

.hero-hamburger {

  position: absolute;

  right: 15px;
  bottom: 15px;

  background: var(--brand-yellow);

  color: #000;

  font-weight: bold;

  padding: 4px 8px;

  cursor: pointer;

  z-index: 3;

}

.hero-fx-panel {

  position: absolute;

  right: 15px;
  bottom: 50px;

  background: #000;

  border: 2px solid var(--brand-yellow);

  padding: 10px;

  display: none;

  z-index: 3;

  font-size: 12px;

}

.hero-fx-panel.active {
  display: block;
}

.fx-row {

  margin-bottom: 6px;

  color: var(--brand-yellow);

}



/* =========================================================
   HERO IMAGE EFFECT LAYERS
========================================================= */

.hero-vignette {

  position: absolute;

  inset: 0;

  pointer-events: none;

  z-index: 2;

}

.hero-blue-shift {

  position: absolute;

  inset: 0;

  pointer-events: none;

  mix-blend-mode: color;

  z-index: 1;

}



/* =========================================================
   HERO TEXT SHADOW
========================================================= */

.hero-text-shadow_30 {

  position: relative;

  z-index: 2;

}

.hero-text-shadow_30::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(0, 3, 20, 0.05) 0%,
      rgba(0, 3, 20, 0.18) 20%,
      rgba(0, 3, 20, 0.75) 50%,
      rgba(0, 3, 20, 0.85) 80%,
      rgba(0, 3, 20, 0.95) 100%
  );

  border-radius: 0px;

}



/* =========================================================
   ARTICLE ROW (COMMANDER STYLE LIST)
========================================================= */

.article-row {
  font-size: 16px;
  line-height: 1.0;
  color: #ffd400;
  cursor: pointer;
  white-space: nowrap;
}

.article-row img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
  border: 0px solid black;
}

.article-line {
  vertical-align: middle;
  display: inline-block;
  font-size: 20px;
  color: var(--CGA_sarga);
}

.article-row a {
  color: inherit;
  text-decoration: none;
}

.article-row:hover {
  background: #ffd400;
  color: var(--bg) !important;
}

.article-row:hover a {
  color: var(--bg);
}



/* =========================================================
   ARTICLE STATUS COLORS
========================================================= */

.article-status {
  font-weight: bold;
}

.status-published {
  color: var(--CGA_piros);
}

.status-draft {
  color: var(--CGA_zold);
  background: var(--C64_sotet_szurke);
}

.status-archived {
  color: var(--CGA_bibor);
}

.status-unknown {
  color: var(--CGA_sarga);
}



/* =========================================================
   404 CURSOR
========================================================= */

.error-cursor {
  display: inline-block;
  margin-left: 0px;
  margin-right: 6px;
  color: var(--accent-magenta);
  animation: blink404 1s steps(1) infinite;
}

@keyframes blink404 {
  0%   { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 1; }

}

/* =========================================================
   BRAND TV BOOT EASTER EGG
========================================================= */

.cp-tv-boot {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: auto;
  overflow: hidden;
  color: var(--accent-magenta);
}

.cp-tv-boot__shade {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: #000314;
  transform: scaleY(0);
}

.cp-tv-boot__shade--top {
  top: 0;
  transform-origin: top;
}

.cp-tv-boot__shade--bottom {
  bottom: 0;
  transform-origin: bottom;
}

.cp-tv-boot.is-closing .cp-tv-boot__shade {
  animation: cpTvShadeIn 620ms steps(12, end) forwards;
}

.cp-tv-boot.is-opening .cp-tv-boot__shade {
  transform: scaleY(1);
  animation: cpTvShadeOut 620ms steps(12, end) forwards;
}

.cp-tv-boot__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: #000314;
  pointer-events: none;
}

.cp-tv-boot.is-typing .cp-tv-boot__center {
  opacity: 1;
  pointer-events: auto;
}

.cp-tv-boot.is-opening .cp-tv-boot__center {
  opacity: 0;
}

.cp-tv-boot__text {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  max-width: 96vw;
  color: var(--brand-yellow);
  font-family: inherit;
  font-size: clamp(42px, 14vw, 190px);
  line-height: .9;
  white-space: nowrap;
}

.cp-tv-boot__letters,
.cp-tv-boot__cursor {
  position: relative;
  z-index: 1;
}

.cp-tv-boot__char {
  display: inline-block;
  line-height: inherit;
}

.cp-tv-boot__cursor {
  display: inline-block;
  width: .42em;
  height: .72em;
  margin-left: .06em;
  transform: translateY(.06em);
  background: var(--accent-magenta);
}

.cp-tv-boot__cursor.is-blinking {
  animation: cpTvCursorBlink 500ms steps(1, end) infinite;
}

@keyframes cpTvShadeIn {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes cpTvShadeOut {
  from { transform: scaleY(1); }
  to { transform: scaleY(0); }
}

@keyframes cpTvCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}



/* =========================================================
   FOOTER
========================================================= */

.cp-footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cp-footer__tagline {
  color: white;
}

.netmeter {
  display: none;
}

.netmeter.is-visible {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  padding: 8px 10px;
  color: rgba(255, 255, 255, .5);
  font-size: 14px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

/* =========================================================
   HERO MODE SYSTEM
========================================================= */

.hero[data-mode="v2"],
.hero[data-mode="v2t"] {

  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  position: relative;

}

.hero[data-mode="v2"] {

  min-height: clamp(360px, 36vw, 640px);

}

.hero[data-mode="v2"].hero--natural-ratio,
.hero[data-mode="v2t"].hero--natural-ratio {
  min-height: auto;
  aspect-ratio: var(--hero-aspect);
  background-size: contain;
}

.hero[data-mode="v2t"] {
  min-height: auto;
  aspect-ratio: auto;

}

.hero[data-mode="v2t"].hero--natural-ratio {
  aspect-ratio: var(--hero-aspect);
}

.hero[data-mode="v2"] > .inner,
.hero[data-mode="v2t"] > .inner {
  grid-template-columns: 1fr;
  padding-inline: 18px;
  /*padding-block: 18px;*/
  min-height: auto;
  align-items: start;

}

.hero[data-mode="v2"] > .inner,
.hero[data-mode="v2t"] > .inner {
  padding-bottom: 18px;
}

.hero[data-mode="v2"] .hero-media,
.hero[data-mode="v2t"] .hero-media {
  display: none !important;
}

.hero[data-mode="v3"] > .inner {
  grid-template-columns: 1fr;
  align-items: start;

}

.hero[data-mode="v3"] .hero-media {
  order: 1;
}


.hero[data-mode="v3"] .hero-text {
  order: 2;
}

.hero[data-mode="v3"] .hero-media {

  aspect-ratio: 16 / 10;
  height: auto;

}

.hero[data-mode="v3"].hero--natural-ratio .hero-media {
  aspect-ratio: var(--hero-aspect);
}

/* */

.sidebar-card{
    margin-bottom:24px;
}

/* ===== HEADER ===== */

.sidebar-header{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:8px;
}

.sidebar-header::after{
    content:"";
    height:2px;
    background:var(--brand-yellow);
    flex:1;
}

/* ===== CATEGORY ===== */

.sidebar-cat{
    background:var(--accent-magenta);
    color:black;
    display:inline-block;
    align-self:flex-start;
    font-size:20px;
    padding:1px 7px;
    border:none;
    border-radius:0;
    white-space:nowrap;
}

/* ===== BODY ===== */

.sidebar-card-body{
    display:flex;
    gap:14px;
    align-items:flex-start;
}

/* ===== VERTICAL LINE ===== */

.sidebar-line {
    width: 4px;
    background: var(--brand-yellow);
    border-radius: 2px;
    margin-left: -15px;
  }

/* ===== IMAGE ===== */

.sidebar-thumb{
    width:120px;
    height:80px;
    background-size:cover;
    background-position:center;
    border-radius:4px;
}

/* ===== TEXT ===== */

.sidebar-title{
    font-size:26px;
    margin:0 0 6px 0;
}

.sidebar-title a{
    color:var(--cp-related-title-color, var(--cp-title-color, var(--brand-yellow)));
    text-decoration:none;
}

.sidebar-excerpt{
    margin:0;
    font-size:22px;
    line-height:1.1;
    
}
.sidebar-thumb{
    width:90px;
    aspect-ratio:1 / 1;

    background-size:cover;
    background-position:center;

    border-radius:4px;
    flex-shrink:0;
}

.sidebar-card-body {
}

.hero-suggestion {
  text-align: center;
  text-transform: uppercase;
}

.badge-edit{
  color: var(--CGA_fekete);
  background-color: var(--C64_zold);
}

.badge-edit, .badge-status {
  text-decoration:none;
  padding: 1px 7px;
  font-size: 20px;
}

.badge-status.status-draft{
  color: var(--C64_vilagos_szurke);
  background-color: var(--C64_sotet_szurke);
}

.badge-status.status-archived{
  color: var(--C64_vilagos_szurke);
  background-color: var(--C64_sotet_szurke);
}

.badge:hover{
  filter: brightness(1.15);
}

.hero--bottom{
  display:flex;
  flex-direction:column;
}

.hero--bottom .inner{
  margin-top:auto;
}

.ishero-title {
  font-size: 44px!important;
  line-height: 44px;
}

.ishero-lede {
  max-width: 100%;
}

/* =========================
   C64 CODE BLOCK
========================= */


.cp-c64code{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:auto;
  box-sizing:border-box;
}

.cp-c64code pre{
  display:block;
  margin:0;
  font-family:"C64ProMono", monospace;
  color: var(--C64_vilagos_kek);     /* #5555ff */
  font-size:18px;
  line-height:1.4;
  white-space:pre;
  width:max-content;
  min-width:100%;
  max-width:none;
}

@font-face {
    font-family: "C64ProMono";
    src: url("./C64_Pro_Mono-STYLE.ttf") format("truetype");
    font-display: swap;
}

.header-user{
display:inline-flex;
align-items:center;
gap:10px;
margin-left:14px;
}

.logout-link{
color:var(--link-cyan);
text-decoration:none;
font-size:14px;
}

.logout-link:hover{
text-decoration:underline;
}

.avatar{
width:34px;
height:34px;
object-fit:cover;
border-radius:4px;
image-rendering:pixelated;
}

/* EDITOR2 */

/* =========================================================
   EDITOR – 3 COLUMN GRID (SAFE / FULL WIDTH COMPATIBLE)
========================================================= */

.view-editor .editor-triple{
  display:grid;

  grid-template-columns:
    minmax(0, 1fr)     /* BAL */
    6px                /* RESIZER */
    minmax(420px, 680px) /* KÖZÉP */
    6px                /* RESIZER */
    320px;             /* JOBB */

  gap:20px;
  align-items:start;

  width:100%;
}

/* =========================
   OSZLOPOK
========================= */

.view-editor .editor-col{
  display:flex;
  flex-direction:column;
  min-width:0; /* CRITICAL → ne törje szét a gridet */
}

/* =========================
   BAL – CONTENT
========================= */

.view-editor .editor-left{
  padding:20px;
}

/* =========================
   KÖZÉP – TERMINAL
========================= */

.view-editor .editor-middle{
  padding:20px;

  border-left:1px solid var(--link-cyan);
  border-right:1px solid var(--link-cyan);

  background:rgba(0,0,0,0.25);
}

/* =========================
   JOBB – SIDEBAR
========================= */

.view-editor .editor-right{
  padding:20px;
}

/* =========================
   RESIZER
========================= */

.view-editor .editor-resizer{
  width:6px;
  cursor:col-resize;

  background:linear-gradient(
    to right,
    transparent,
    var(--accent-magenta),
    transparent
  );

  opacity:.35;
  transition:opacity .2s ease;
}

.view-editor .editor-resizer:hover{
  opacity:1;
}

/* =========================
   HERO FIX (EDITOR MODE)
========================= */

.view-editor .hero{
  width:100%;
  margin:0;
}

/* =========================
   SCROLL FIX
========================= */

.view-editor .editor-left,
.view-editor .editor-middle,
.view-editor .editor-right{
  overflow:auto;
}

/* =========================
   FONT / TERMINAL FINOMHANGOLÁS
========================= */

.view-editor .cursor-terminal{
  font-size:20px;
  line-height:1.2;
}

/* =========================
   CONTENTEDITABLE UX
========================= */

.view-editor [contenteditable="true"]{
  cursor:text;
}

/* =========================
   ULTRA NARROW VIEWPORTS
========================= */

/* Article hero rendering never changes list thumbnails. */
.single-main > .hero[data-hero-render="smooth"] { image-rendering: auto; }
.single-main > .hero[data-hero-render="pixelated"] { image-rendering: pixelated; }

body.view-single .single-sidebar .related-articles-heading {
  text-align: left;
  color: var(--white);
  margin-bottom: 10px;
}

.single-hero-meta-separator {
  color: var(--cp-gray, #737373);
  letter-spacing: -6px;
  margin-right: 3px;
}
.single-hero-author { color: var(--brand-yellow); }

/* Keep header logos on one line; the fitter removes whole trailing glyphs. */
@media (min-width: 769px) {
  .site-header .nav .inner { grid-template-columns: minmax(0, max-content) 1fr auto; }
}
.site-header .brand { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; }
.site-header .brand__text { white-space: nowrap; }
.site-header .brand .brand-fit-hidden { visibility: hidden; }
.site-header .brand__truncation {
  position: absolute;
  top: var(--brand-y-offset, 0px);
  left: var(--brand-truncation-left, 0px);
  color: var(--cp-gray, #737373);
  letter-spacing: -9px;
  padding-right: 6px;
  line-height: 1;
  visibility: hidden;
  pointer-events: none;
}
.site-header .brand.is-truncated .brand__truncation { visibility: visible; }
.site-header .brand.is-truncated .brand__cursor { visibility: hidden; }
