:root {
  --pw-primary: #0cc4c6;
  --pw-primary-dark: #0aa8aa;
  --pw-accent: #2443ac;
  --pw-bg: #fbfafa;
  --pw-text: #183247;
  --pw-muted: #6b7a86;
  --pw-border: #e6ecef;
  --pw-card: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--pw-bg);
  color: var(--pw-text);
  line-height: 1.6;
}
a { color: var(--pw-accent); }
header.pw-header {
  background: #ffffff;
  border-bottom: 3px solid var(--pw-primary);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.pw-header img.logo { height: 36px; }
header.pw-header .pw-tag {
  margin-left: auto;
  font-size: 13px;
  color: var(--pw-muted);
}
.pw-hero {
  background: linear-gradient(135deg, var(--pw-primary) 0%, var(--pw-accent) 100%);
  color: #fff;
  padding: 12px 32px;
}
.pw-hero .crumbs { font-size: 12px; opacity: .9; margin-bottom: 2px; }
.pw-hero .crumbs a { color:#fff; text-decoration: none; }
.pw-hero .crumbs a:hover { text-decoration: underline; }
.pw-hero h1 { margin: 0; font-size: 18px; font-weight: 600; }

.pw-layout {
  max-width: 1200px;
  margin: 20px auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .pw-layout { grid-template-columns: 1fr; } }

aside.pw-side {
  background: var(--pw-card);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  position: sticky;
  top: 80px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
aside.pw-side .pw-side-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pw-muted);
  letter-spacing: .04em;
  margin: 0 0 10px;
}
aside.pw-side ul { list-style: none; padding: 0; margin: 0; }
aside.pw-side li { margin: 0; }
aside.pw-side li a {
  display: block;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--pw-text);
  text-decoration: none;
  border-left: 3px solid transparent;
}
aside.pw-side li a:hover { background: #f1f6f7; }
aside.pw-side li a.active {
  background: #e7f8f8;
  border-left-color: var(--pw-primary);
  font-weight: 600;
}

main.pw-main {
  background: var(--pw-card);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(24,50,71,0.05);
  padding: 28px 36px;
  min-width: 0;
}
main.pw-main p { margin: 0 0 12px 0; }
main.pw-main img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--pw-border);
  border-radius: 4px;
  margin: 12px 0;
}

/* index / folder grid */
.pw-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pw-cat-card {
  background: var(--pw-card);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  padding: 18px;
}
.pw-cat-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--pw-accent); }
.pw-cat-card ul { list-style: none; padding: 0; margin: 0; }
.pw-cat-card li { padding: 3px 0; font-size: 14px; }
.pw-cat-card li a { text-decoration: none; }
.pw-cat-card li a:hover { text-decoration: underline; }
.pw-cat-card .count { color: var(--pw-muted); font-size: 12px; }

footer.pw-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--pw-muted);
  border-top: 1px solid var(--pw-border);
  background: #fff;
}
/* Dead/removed-link indicator (origineel artikel niet meer beschikbaar) */
a.pw-dead {
  color: #999 !important;
  text-decoration: line-through;
  cursor: not-allowed;
}
a.pw-dead .pw-dead-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  background: #fde2e2;
  color: #b00020;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  vertical-align: middle;
}
