/* Line and texture do the work colour is not allowed to do. */
:root {
  --tex-tolgy-vilagos: url("../assets/textures/tolgy-vilagos.jpg"); /* @kind other */
  --tex-tolgy-sotet: url("../assets/textures/tolgy-sotet.jpg"); /* @kind other */
  --tex-ko: url("../assets/textures/ko.jpg"); /* @kind other */
  --tex-rez: url("../assets/textures/rez.jpg"); /* @kind other */
  --tex-vakolat: url("../assets/textures/vakolat.jpg"); /* @kind other */

  --rule-tick-step: 6px;   /* mérőléc division */
  --rule-tick-opacity: 0.42; /* @kind other */
  --grid-pattern-step: 8px;
  --hatch-step: 6px;
  --grain-opacity: 0.03; /* @kind other */
}

/* mérőléc — 1 px verticals every 6 px, at 42%. Section boundaries, sparingly. */
.kb-rule {
  height: 10px;
  background-image: repeating-linear-gradient(to right, var(--line-strong) 0 1px, transparent 1px var(--rule-tick-step));
  opacity: var(--rule-tick-opacity);
}
.kb-rule--tall { height: 16px; }

/* hajszálvonal divider */
.kb-hairline { height: 1px; background: var(--line-hairline); border: 0; margin: 0; }

/* dupla vonal — 1 + 3 + 1 px, grafit */
.kb-doubleline { height: 5px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }

/* pontsor — 1 px dots, 2/6 */
.kb-dotline { height: 1px; background-image: repeating-linear-gradient(to right, var(--line-strong) 0 2px, transparent 2px 6px); }

/* ferde vonalkázás — 45°, 6 px. Empty states. */
.kb-hatch { background-image: repeating-linear-gradient(45deg, var(--line-hairline) 0 1px, transparent 1px var(--hatch-step)); }

/* rács — 8 px graph grid, very faint background */
.kb-grid-pattern {
  background-image: linear-gradient(to right, var(--line-hairline) 0 1px, transparent 1px), linear-gradient(to bottom, var(--line-hairline) 0 1px, transparent 1px);
  background-size: var(--grid-pattern-step) var(--grid-pattern-step);
  opacity: 0.5;
}

/* szemcse — 3% noise for large flat surfaces, dark bands above all */
.kb-grain { position: relative; }
.kb-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* sarokjel — 1 px corner marks, 16 px arms, sitting outside a card */
.kb-cornermarks { position: relative; }
.kb-cornermarks::before, .kb-cornermarks::after {
  content: ""; position: absolute; width: var(--corner-mark-length); height: var(--corner-mark-length); pointer-events: none;
}
.kb-cornermarks::before { top: -8px; left: -8px; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.kb-cornermarks::after { bottom: -8px; right: -8px; border-bottom: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
