/* Interactie, taalkeuze en het persoonlijke Ansible-playbook. */
.header-actions { gap: 12px; }
.language-switch { display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 4px; font: 11px var(--mono); }
.language-switch a { min-width: 34px; padding: 6px 8px; text-align: center; color: var(--text); border-radius: 2px; }
.language-switch a:hover { color: var(--accent); }
.language-switch a[aria-current] { color: var(--accent); background: var(--soft); }
.hero-visual { padding-bottom: 0; }
.fetch-profile img { width: 116px; height: 140px; flex-shrink: 0; }
.fetch-profile .profile-label { white-space: normal; }
.interaction-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 10px/1.8 var(--mono); }
.terminal-body > .interaction-hint { margin-top: 14px; font-size: 9px; }
.hint-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.explorer-hint { margin: -12px 0 22px; }
.terminal-input-line { border: 1px solid var(--line); border-radius: 4px; padding: 4px 9px; background: var(--bg); }
.terminal-input-line:focus-within { border-color: var(--accent); }
.terminal-caret { display: block; flex: 0 0 8px; width: 8px; height: 17px; background: var(--text); animation: cursor-blink 1.3s step-end infinite; }
.terminal-input-line:focus-within .terminal-caret { display: none; }
.hint-dot, .tool-arrow, .timeline-item summary::after, .role-tree summary::marker, .lab-service > span:first-child {
  animation: interactive-beacon 2.8s ease-in-out infinite;
}
.terminal-input-line input { caret-color: var(--text); }
button:hover .tool-arrow, .lab-service:hover > span:first-child { animation: none; }
@keyframes cursor-blink { 50% { opacity: 0; } }
@keyframes interactive-beacon { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.workspace { grid-template-columns: 280px minmax(0, 1fr); }
.file-explorer { min-width: 0; }
.role-tree { font: 11px/1.7 var(--mono); max-height: 500px; overflow: auto; scrollbar-width: thin; padding-right: 4px; }
.role-tree details { margin: 3px 0; }
.role-tree summary { cursor: pointer; color: var(--text); padding: 7px 4px; overflow-wrap: anywhere; }
.role-tree summary::marker { color: var(--accent); }
.role-tree .tree-children { border-left: 1px solid var(--line); margin-left: 6px; padding-left: 10px; }
.role-tree .file-button { padding: 9px 7px; font-size: 10px; overflow-wrap: anywhere; width: 100%; }
.role-tree .file-button.active { border-color: var(--accent); }
.role-tree .role-folder > summary { font-size: 10px; }
.role-tree .tree-root-label { display: block; color: var(--accent); margin: 0 4px 12px; font-size: 10px; }
.editor-bar > span { overflow-wrap: anywhere; }
.editor-bar > div { flex-shrink: 0; }
.code-view { max-height: 500px; }
.role-code-link { font: inherit; color: var(--accent); background: transparent; border: 0; border-bottom: 1px dashed var(--accent); padding: 0; text-align: left; }
.role-code-link:hover { background: var(--soft); }
.role-shortcuts { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 24px 22px; }
.role-shortcuts button { font: 10px/1.5 var(--mono); background: transparent; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px; color: var(--muted); }
.role-shortcuts button:hover, .role-shortcuts button.active { color: var(--accent); background: var(--soft); border-color: var(--accent); }
.editor-intro h3:focus { outline: none; }
@media (max-width: 1200px) {
  .header-contact { display: none; }
  .site-header nav { gap: 17px; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .brand > span:last-child { font-size: 10px; }
  .fetch-profile img { width: 100px; height: 122px; }
  .fetch-profile { gap: 12px; }
  .workspace { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .workspace { grid-template-columns: 1fr; }
  .file-explorer { display: block; padding: 18px; }
  .file-explorer > .panel-label { display: flex; margin-bottom: 14px; }
  .role-tree { max-height: 325px; overflow: auto; scrollbar-width: thin; }
  .role-tree .file-button { width: 100%; }
  .fetch-profile img { width: 116px; height: 140px; }
  .editor-bar { align-items: flex-start; }
}
@media (max-width: 440px) {
  .brand > span:last-child { font-size: 9px; }
  .header-actions { gap: 6px; }
  .language-switch { font-size: 10px; gap: 4px; }
  .fetch-profile img { width: 96px; height: 116px; }
  .fetch-profile { gap: 12px; }
  .fetch-profile span { overflow-wrap: anywhere; }
  .fetch-profile .profile-label { font-size: 8px !important; }
  .fetch-profile .fetch-line { max-width: 130px; }
  .terminal-body > .interaction-hint { font-size: 8px; }
  .editor-bar { flex-direction: column; gap: 8px; }
  .editor-bar > div { width: 100%; justify-content: space-between; }
  .role-shortcuts { margin-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, *::marker { animation: none !important; }
}
@media print { .interaction-hint, .language-switch { display: none; } }
