/* Wiki layout (MSDEV-154), served on /_assets/wiki.css. Colours and fonts from
   www-movie/www/v2/css (layout_v2.css, custom.css). */
:root {
  --accent: #f6bc41;
  --navy: #0a1e3a;
  --navy-deep: #031023;
  --link: #1c71b8;
  --slate: #556274;
  --muted: #778393;
  --panel: #f0f1f3;
  --line: #d2d6db;
  --white: #ffffff;
  --heading: "Poppins", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
}
/* Accent per site: <body class="wiki--<site>"> */
.wiki--moviemeter { --accent: #f6bc41; }
.wiki--tvmeter { --accent: #f28c28; }
.wiki--boekmeter { --accent: #a35afe; }
.wiki--musicmeter { --accent: #00adf2; }
.wiki--gamesmeter { --accent: #95c000; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: rgba(10, 30, 58, .66); font: 400 14px/1.45 var(--body); }
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; padding: 8px 12px; background: var(--accent); color: var(--navy); font-weight: 600; }
.skip:focus { left: 16px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); color: var(--white); }
.site-header .container { display: flex; align-items: center; flex-wrap: wrap; gap: 36px; min-height: 64px; }
.logo { color: var(--white); font: 700 22px/1 var(--heading); letter-spacing: -.01em; text-decoration: none; }
.logo span { margin-left: 6px; color: var(--accent); font-weight: 600; }
.mainNav { display: flex; gap: 22px; font: 600 14px/20px var(--heading); letter-spacing: .3px; }
.mainNav a { position: relative; display: block; padding: 22px 1px; color: var(--white); text-decoration: none; }
.mainNav a:hover::after, .mainNav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.extraLinks { margin-left: auto; font: 500 14px/20px var(--heading); }
.extraLinks a { color: var(--accent); text-decoration: none; }
.extraLinks a:hover { text-decoration: underline; }

/* Title */
.title-bar { padding-top: 22px; }
.crumbs { margin: 0 0 14px; font-size: 14px; }
.crumbs span[aria-hidden] { margin: 0 6px; color: var(--muted); }
h1 { margin: 0; padding: 12px 0 10px; border-top: 2px solid var(--accent); color: var(--navy); font: 700 40px/44px var(--heading); letter-spacing: -.01em; overflow-wrap: anywhere; }
.status { margin: 0 0 28px; color: var(--slate); font-size: 14px; }

/* Columns: table of contents, text, related pages */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 12px; padding-bottom: 64px; }
.layout--toc { grid-template-columns: 240px minmax(0, 1fr); }
.layout--related { grid-template-columns: minmax(0, 1fr) 260px; }
.layout--toc.layout--related { grid-template-columns: 240px minmax(0, 1fr) 260px; }

.toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.toc h2 { margin: 0 0 10px; color: var(--navy); font: 700 16px/22px var(--heading); }
.toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 5px 0 5px 14px; border-left: 2px solid transparent; color: var(--slate); font: 500 14px/19px var(--heading); text-decoration: none; }
.toc li.h3 a { padding-left: 26px; font: 400 13px/18px var(--body); }
.toc a:hover { color: var(--navy); text-decoration: underline; }
.toc a[aria-current="true"] { border-left-color: var(--accent); color: var(--navy); font-weight: 600; }

main { min-width: 0; }

/* Text, after div.begrip-pagina */
.prose { color: var(--navy-deep); font-size: 16px; line-height: 1.65; letter-spacing: .2px; overflow-wrap: break-word; }
.prose p { margin: 0 0 14px; }
.prose > p, .prose > ul, .prose > ol, .prose > dl, .prose > blockquote { max-width: 75ch; }
.prose h2 { margin: 36px 0 12px; padding-top: 8px; border-top: 2px solid var(--accent); color: var(--navy); font: 700 22px/28px var(--heading); scroll-margin-top: 20px; }
.prose h3 { margin: 22px 0 6px; color: var(--navy); font: 600 17px/24px var(--heading); scroll-margin-top: 20px; }
.prose h4, .prose h5, .prose h6 { margin: 18px 0 6px; color: var(--navy); font: 600 15px/22px var(--heading); }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -16px; top: .72em; width: 6px; height: 6px; border-radius: 1px; background: var(--accent); }
.prose li { margin: 4px 0; }
.prose dl { margin: 0 0 14px; }
.prose dt { color: var(--navy); font-weight: 700; }
.prose dd { margin: 0 0 6px 22px; }
.prose a { color: var(--link); text-decoration: underline; }
.prose a:hover { opacity: .8; }
.prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.prose code, .prose pre { font-family: Consolas, Menlo, monospace; font-size: 14px; background: var(--panel); border-radius: 3px; }
.prose code { padding: 1px 4px; }
.prose pre { margin: 0 0 14px; padding: 10px 12px; overflow-x: auto; white-space: pre-wrap; }
.prose blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--line); }
.prose img { max-width: 100%; height: auto; border-radius: 3px; vertical-align: middle; }

/* Tables: div.wiki-table > table.wikitable; cells may carry their own colours and widths from the old wiki */
.wiki-table { max-width: 100%; margin: 16px 0; overflow-x: auto; }
.prose table { border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.prose table.wikitable th, .prose table.wikitable td { padding: 6px 8px; border: 1px solid var(--line); vertical-align: top; }
.prose table.wikitable th { background: var(--panel); color: var(--navy); font-weight: 700; text-align: left; }
.prose table p { margin: 0 0 6px; }
.prose table ul > li::before { top: .6em; }

/* Images */
.wiki-figure { margin: 0 0 14px; max-width: 300px; }
.wiki-figure--right { float: right; margin-left: 20px; }
.wiki-figure--left { float: left; margin-right: 20px; }
.wiki-figure--center { margin-left: auto; margin-right: auto; }
.wiki-figure--none { float: none; }
.wiki-figure img { display: block; }
.wiki-figure figcaption { margin-top: 6px; color: var(--slate); font-size: 13px; line-height: 1.4; }
.wiki-image--right { float: right; margin: 0 0 10px 16px; }
.wiki-image--left { float: left; margin: 0 16px 10px 0; }
.wiki-image--center { display: block; margin: 0 auto 14px; }
.prose h2, .prose hr { clear: both; }

/* Main page: intro and the overview cards (PortalLayout) */
.prose--main > p:first-child { max-width: 75ch; color: var(--navy); font-size: 18px; line-height: 1.6; }
.wiki-portal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 32px 0 8px; }
.wiki-card { display: flex; flex-direction: column; padding: 22px 22px 14px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; box-shadow: 0 2px 8px rgba(10, 30, 58, .06); }
.prose .wiki-card__title { margin: 0 0 6px; padding: 0; border: 0; color: var(--navy); font: 700 20px/26px var(--heading); }
.prose .wiki-card__title a { color: inherit; text-decoration: none; }
.prose .wiki-card__title a:hover { color: var(--link); text-decoration: underline; }
.prose .wiki-card__intro { margin: 0 0 10px; color: var(--slate); font-size: 14px; line-height: 1.5; }
.prose .wiki-card__group { margin: 16px 0 2px; color: var(--muted); font: 600 12px/16px var(--heading); letter-spacing: .08em; text-transform: uppercase; }
.prose .wiki-card__group a { color: inherit; text-decoration: none; }
.prose .wiki-card ul { margin: 0 0 6px; padding: 0; }
.prose .wiki-card ul > li { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--panel); font-size: 15px; line-height: 1.4; }
.prose .wiki-card ul > li:last-child { border-bottom: 0; }
.prose .wiki-card ul > li::before { content: none; }
.prose .wiki-card li a { color: var(--link); font-weight: 500; text-decoration: none; }
.prose .wiki-card li a:hover { color: var(--link); text-decoration: underline; }

/* Crew: login form, messages, logged-in bar */
.wiki-form { max-width: 380px; }
.wiki-form label { display: block; margin-bottom: 6px; color: var(--navy); font: 600 14px/20px var(--heading); }
.wiki-form input[type="text"], .wiki-form input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); color: var(--navy-deep); font: 400 16px/22px var(--body); }
.wiki-form input:focus { border-color: var(--navy); outline: 2px solid var(--accent); outline-offset: 0; }
.wiki-button { padding: 10px 20px; border: 0; border-radius: 4px; background: var(--navy); color: var(--white); font: 600 15px/20px var(--heading); cursor: pointer; }
.wiki-button:hover { background: var(--navy-deep); }
.wiki-alert { max-width: 380px; padding: 10px 14px; border-left: 4px solid #cb2c01; border-radius: 3px; background: #fdecea; color: var(--navy-deep); }
.crew-bar { color: rgba(255, 255, 255, .8); font-weight: 400; }
.crew-bar strong { color: var(--white); font-weight: 600; }
.crew-logout { display: inline; margin: 0; }
.crew-logout button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.crew-logout button:hover { text-decoration: underline; }
.extraLinks { display: flex; align-items: center; gap: 20px; }
.extraLinks .crew-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: rgba(255, 255, 255, .85); }
.extraLinks .crew-icon:hover, .extraLinks .crew-icon:focus-visible { background: rgba(255, 255, 255, .1); color: var(--accent); }
.crew-new { margin: 0; }
.crew-edit { margin: -8px 0 16px; }
.crew-edit .wiki-button { display: inline-block; padding: 7px 16px; font-size: 14px; text-decoration: none; }
.wiki-notice { max-width: 75ch; padding: 10px 14px; border-left: 4px solid #2e8540; border-radius: 3px; background: #e7f4ea; color: var(--navy-deep); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wiki-hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Editor page: editor left, categories and save button right */
.wiki-form--editor { max-width: none; }
.wiki-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }
.wiki-editor-main > p { margin: 0 0 16px; }
.wiki-editor-main input[type="text"] { max-width: 480px; }
.wiki-form textarea { width: 100%; min-height: 480px; padding: 20px 28px; border: 1px solid var(--line); border-radius: 6px; font: 400 14px/1.5 Consolas, Menlo, monospace; }
.wiki-editor-main .tox.tox-tinymce { border: 1px solid var(--line); border-radius: 6px; }
.wiki-editor-main .tox .tox-editor-header { border-bottom: 1px solid var(--line); box-shadow: none; padding: 0; }
.wiki-editor-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; }
.wiki-panel { padding: 16px 18px; background: var(--panel); border-radius: 6px; }
.prose .wiki-panel__title { margin: 0 0 10px; color: var(--navy); font: 600 14px/20px var(--heading); }
.wiki-form .wiki-check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--navy-deep); font: 400 15px/20px var(--body); cursor: pointer; }
.wiki-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); }
.wiki-panel input[type="text"] { margin-top: 6px; padding: 8px 10px; font-size: 14px; }
.wiki-panel-actions { display: flex; align-items: center; gap: 16px; }
.wiki-panel-actions .wiki-button { flex: 1; }
@media (max-width: 900px) {
  .wiki-editor-layout { grid-template-columns: minmax(0, 1fr); }
  .wiki-editor-side { position: static; }
}

/* Category listing */
.wiki-category { columns: 2 220px; }

/* Related pages */
.related { position: sticky; top: 16px; padding: 16px 18px 10px; background: var(--panel); border-radius: 3px; }
.related h2 { margin: 0 0 8px; color: var(--navy); font: 700 16px/22px var(--heading); }
.related ul { margin: 0; padding: 0; list-style: none; }
.related li { border-top: 1px solid var(--line); }
.related a { display: block; padding: 8px 0; color: var(--navy); font-size: 14px; text-decoration: none; }
.related a:hover { color: var(--link); text-decoration: underline; }
.related-all { margin: 0; border-top: 1px solid var(--line); }
.related-all a { color: var(--link); font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .68); font-size: 13px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--white); }

@media (max-width: 1100px) {
  .layout--toc.layout--related { grid-template-columns: 220px minmax(0, 1fr); }
  .layout--toc.layout--related .related { grid-column: 2; position: static; }
}
@media (max-width: 780px) {
  .site-header .container { gap: 0 20px; padding-top: 14px; }
  .mainNav { order: 3; width: 100%; gap: 18px; overflow-x: auto; }
  .mainNav a { padding: 12px 1px; white-space: nowrap; }
  .extraLinks { font-size: 13px; }
  .extraLinks > a:not(.crew-icon):not(.crew-new) { display: none; }
  h1 { font-size: 28px; line-height: 32px; }
  .layout, .layout--toc, .layout--related, .layout--toc.layout--related { display: block; }
  .toc { position: static; max-height: none; margin-bottom: 24px; padding: 14px 16px 10px; background: var(--panel); border-radius: 3px; }
  .toc li.h3 { display: none; }
  .related { position: static; margin-top: 32px; }
  .wiki-figure--right, .wiki-figure--left, .wiki-image--right, .wiki-image--left { float: none; margin-left: 0; margin-right: 0; }
}
