/* Koopjeserver.nl redesign 2026 - blog + tutorials (content group).
   Styles for the HTML that comes from the database (inside .ks-prose), following the design examples
   website/blog/8/hoe-maak-ik-mijn-minecraft-server-sneller.html and tutorials/minecraft/36/werelden-uploaden-met-filezilla.html.
   The page frame itself (hero, cards, buttons) uses inline styles like the design. */

.ks-c .ks-prose { font-size: 17.5px; line-height: 1.8; color: #4B4366; overflow-wrap: anywhere; word-break: normal; }
.ks-c-tut .ks-prose { line-height: 1.75; }
.ks-c .ks-prose > * { margin: 0; }
.ks-c .ks-prose > * + * { margin-top: 16px; }
.ks-c .ks-prose strong, .ks-c .ks-prose b { font-weight: 800; color: #1F1147; }
.ks-c .ks-prose a { color: #7D3CEE; font-weight: 800; text-decoration: underline; }
.ks-c .ks-prose a:hover { color: #5B27B8; }
.ks-c .ks-prose h3 { margin: 28px 0 0; font-family: 'Nunito', ui-rounded, system-ui, sans-serif; font-size: 21px; font-weight: 800; line-height: 1.3; color: #1F1147; }
.ks-c .ks-prose h4, .ks-c .ks-prose h5, .ks-c .ks-prose h6 { margin: 22px 0 0; font-size: 18px; font-weight: 800; line-height: 1.35; color: #1F1147; }
.ks-c .ks-prose > h3:first-child, .ks-c .ks-prose > h4:first-child { margin-top: 0; }
.ks-c .ks-prose h3 + *, .ks-c .ks-prose h4 + * { margin-top: 8px; }
.ks-c .ks-prose ul, .ks-c .ks-prose ol { padding-left: 1.35em; }
.ks-c .ks-prose li { margin: 4px 0; padding-left: 2px; }
.ks-c .ks-prose li::marker { color: #7D3CEE; font-weight: 800; }
.ks-c .ks-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; font-weight: 700; color: #5B27B8;
  background: #F4EFFF; border: 1px solid #E4DAFB; border-radius: 7px; padding: 1px 7px; overflow-wrap: anywhere;
}
.ks-c-blog .ks-prose code { font-size: 0.9em; }
.ks-c .ks-prose pre { background: #15112A; color: #CFC5EE; border-radius: 16px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.ks-c .ks-prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.ks-c .ks-prose hr { border: 0; border-top: 2px dashed #E4DAFB; margin-top: 20px; margin-bottom: 4px; }
.ks-c .ks-prose img { max-width: 100%; height: auto; border-radius: 10px; border: 0; vertical-align: middle; }
.ks-c .ks-prose blockquote { margin: 0; padding: 14px 18px; border-left: 4px solid #7D3CEE; background: #F6F2FF; border-radius: 0 16px 16px 0; color: #1F1147; }

/* first paragraph (lead) */
.ks-c-blog .ks-prose .ks-c-lead { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.7; font-weight: 600; color: #1F1147; }
.ks-c-tut .ks-prose .ks-c-lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.65; font-weight: 600; color: #1F1147; }

/* call-outs: "Een korte uitleg over ...:" / "Tip:" (lavender) and "Let op:" (yellow) */
.ks-c .ks-prose .ks-c-note { display: flex; align-items: flex-start; gap: 14px; }
.ks-c .ks-prose .ks-c-note > p { margin: 0; min-width: 0; font-size: 16.5px; }
.ks-c .ks-prose .ks-c-note-icon { flex: none; display: flex; align-items: center; justify-content: center; }
.ks-c .ks-prose .ks-c-note-info { background: #F6F2FF; border: 1px solid #E4DAFB; border-radius: 18px; padding: 16px 18px; }
.ks-c .ks-prose .ks-c-note-info .ks-c-note-icon { width: 38px; height: 38px; border-radius: 11px; background: #7D3CEE; color: #FFFFFF; box-shadow: 0 3px 0 #5B27B8; }
.ks-c .ks-prose .ks-c-note-info > p { padding-top: 5px; line-height: 1.75; }
.ks-c .ks-prose .ks-c-note-warn { background: #FFF4D6; border: 1px solid #F1DFA6; border-radius: 16px; padding: 14px 16px; }
.ks-c .ks-prose .ks-c-note-warn .ks-c-note-icon { width: 34px; height: 34px; border-radius: 10px; background: #FFC83D; color: #1F1147; box-shadow: 0 2px 0 #D9A21F; }
.ks-c .ks-prose .ks-c-note-warn > p { padding-top: 4px; line-height: 1.65; }
.ks-c .ks-prose .ks-c-label { font-weight: 800; color: #1F1147; }

/* "- " paragraphs as cards */
.ks-c .ks-prose .ks-c-cards { list-style: none; margin-left: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ks-c .ks-prose .ks-c-cards > li {
  display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px 18px; background: #FFFFFF; border: 1px solid #E4DAFB;
  border-radius: 18px; box-shadow: 0 2px 0 #ECE4FD;
}
.ks-c .ks-prose .ks-c-cards-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.ks-c .ks-prose .ks-c-cards > li > p { margin: 0; min-width: 0; padding-top: 5px; font-size: 16.5px; line-height: 1.75; }

/* lists of links (plugins etc.) as cards */
.ks-c .ks-prose .ks-c-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px; }
.ks-c .ks-prose .ks-c-links > li { margin: 0; padding: 0; display: flex; }
.ks-c .ks-prose .ks-c-links > li > a {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E4DAFB; border-radius: 16px;
  box-shadow: 0 2px 0 #ECE4FD; font-size: 16px; font-weight: 800; line-height: 1.35; color: #1F1147; text-decoration: none; min-width: 0;
}
.ks-c .ks-prose .ks-c-links > li > a:hover { border-color: #C9B2F7; color: #5B27B8; }
.ks-c .ks-prose .ks-c-links-icon {
  flex: none; width: 38px; height: 38px; border-radius: 11px; background: #7D3CEE; color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}

/* screenshots */
.ks-c .ks-prose .ks-c-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ks-c .ks-prose .ks-c-fig-frame {
  display: flex; align-items: center; justify-content: center; box-sizing: border-box; border-radius: 18px; border: 1px solid #E4DAFB;
  background-color: #F6F2FF; padding: clamp(8px, 1.6vw, 14px); overflow: hidden;
}
.ks-c .ks-prose .ks-c-fig-frame img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.ks-c .ks-prose .ks-c-fig-frame a { display: block; max-width: 100%; }
.ks-c .ks-prose .ks-c-fig figcaption { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; line-height: 1.4; color: #6E6690; }
.ks-c .ks-prose .ks-c-fig figcaption span { width: 8px; height: 8px; border-radius: 2px; background: #C9C1DC; }

/* tables and embedded video: never wider than the screen */
.ks-c .ks-prose .ks-c-table { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #E4DAFB; border-radius: 16px; }
.ks-c .ks-prose .ks-c-table table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15.5px; line-height: 1.5; }
.ks-c .ks-prose .ks-c-table th, .ks-c .ks-prose .ks-c-table td { border: 0; border-bottom: 1px solid #ECE4FD; padding: 10px 14px; text-align: left; vertical-align: top; overflow-wrap: normal; }
.ks-c .ks-prose .ks-c-table th { background: #F6F2FF; color: #1F1147; font-weight: 800; }
.ks-c .ks-prose .ks-c-table tr:last-child td { border-bottom: 0; }
.ks-c .ks-prose .ks-c-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #15112A; }
.ks-c .ks-prose .ks-c-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.ks-c .ks-prose .ks-c-embed iframe { display: block; max-width: 100%; border: 0; border-radius: 14px; }
.ks-c .ks-prose .game-video-preview { position: relative; display: block; border-radius: 18px; overflow: hidden; background: #15112A; cursor: pointer; aspect-ratio: 16 / 9; }
.ks-c .ks-prose .game-video-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; display: block; }
.ks-c .ks-prose .game-video-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ks-c .ks-prose .game-video-preview .fal { display: none; }
.ks-c .ks-prose .game-video-preview::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 22px; background: #7D3CEE;
  box-shadow: 0 5px 0 #5B27B8; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 56% 50%; background-size: 34px 34px;
}

/* table of contents + small interactions */
.ks-c-toc a { transition: background-color .15s ease; }
.ks-c-toc a:hover { background: #F6F2FF; }
.ks-c-card-link { transition: transform .15s ease, box-shadow .15s ease; }
.ks-c-card-link:hover { transform: translateY(-2px); }
.ks-c-tags a:hover { background: #EBE1FF; }

/* tutorial search */
.ks-tut-zoek input[type="search"]:focus { outline: 3px solid rgba(125, 60, 238, 0.3); outline-offset: 1px; border-color: #7D3CEE; }
.ks-tut-zoek button[disabled] { opacity: .7; cursor: progress; }
.ks-tut-results[hidden], .ks-c [hidden] { display: none !important; }
.ks-tut-results li a:hover { border-color: #C9B2F7; }
.ks-tut-spinner { display: inline-block; width: 16px; height: 16px; border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #FFFFFF; border-radius: 50%; animation: ks-tut-draai .7s linear infinite; vertical-align: -3px; }
@keyframes ks-tut-draai { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .ks-c .ks-prose { font-size: 17px; }
  .ks-c .ks-prose .ks-c-cards > li, .ks-c .ks-prose .ks-c-note-info { padding: 14px; gap: 12px; }
}

/* emphasis inside the Lilita One headings of the DB content (Lilita has one weight) */
.ks-c h2 strong, .ks-c h2 b, .ks-c h2 em, .ks-c h2 i { font-weight: inherit; font-style: normal; color: inherit; }

/* tutorial screenshots: framed box with the height of the design's screenshot blocks */
.ks-c-tut .ks-prose .ks-c-fig-frame { min-height: clamp(200px, 22vw, 280px); }
