/* Fase 4 — sluit aan op ThemeParkStats, zonder wijziging van de hoofdnav. */
.tps-community{padding-top:24px;padding-bottom:68px;color:#15283a}
.tps-community *, .tps-community-admin *{box-sizing:border-box}
.tps-community h2,.tps-community-admin h2{font-size:1.2rem;line-height:1.35;font-weight:800;margin:0 0 12px;color:#15283a}
.tps-community h3{font-size:1.05rem;font-weight:800;margin:16px 0 10px}
.tps-community p{line-height:1.6}
.tps-community .tps-personal-card,.tps-community-admin .tps-personal-card{background:#fff;border:1px solid #e7ebef;border-radius:16px;padding:22px;margin-bottom:20px;box-shadow:0 6px 24px rgba(8,25,43,.045)}
.tps-community .tps-personal-card>header,.tps-community-admin .tps-personal-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e9edf1;padding-bottom:12px;margin-bottom:14px;flex-wrap:wrap}
.tps-community a{color:#d21d35;text-decoration:none}
.tps-community a:hover{text-decoration:underline}
.tps-community-links{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}
.tps-community-links a{color:#172a3a;background:white;border:1px solid #e0e5eb;border-radius:10px;font-weight:700;font-size:.9rem;padding:9px 14px}
.tps-community-links a:hover{color:#c71932;border-color:#d5233b;text-decoration:none}
.tps-community-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin:14px 0 26px}
.tps-community-tile{display:flex;align-items:center;gap:12px;padding:18px;background:white;border:1px solid #e7ecf0;border-radius:15px;color:#1c2c3b!important}
.tps-community-avatar{width:58px;height:58px;border-radius:50%;object-fit:cover;flex:none}
.tps-community-avatar-placeholder{display:grid;place-items:center;flex:none;width:58px;height:58px;border-radius:50%;background:#f1f3f7;color:#d21d35;font-size:2rem}
.tps-community-profile-head{display:flex;align-items:center;gap:20px;margin-bottom:18px}
.tps-community-profile-head .tps-community-avatar,.tps-community-profile-head .tps-community-avatar-placeholder{width:92px;height:92px}
.tps-community-profile-head p{margin:0}
.tps-community-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.tps-community-entry{display:flex;align-items:center;gap:14px;border-bottom:1px solid #edf0f4;padding:14px 0;color:#182c3d!important;min-width:0}
.tps-community-entry:last-child{border-bottom:0}
.tps-community-entry>.tps-personal-image{flex:none}
.tps-community-entry>span:not(.tps-community-status),.tps-community-entry>div{display:grid;gap:4px;min-width:0;flex:1}
.tps-community-entry strong{overflow-wrap:anywhere}
.tps-community-entry small{font-size:.84rem;color:#657484}
.tps-community-entry>a{color:#c71c32}
.tps-community-entry form{margin-left:auto}
.tps-community-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:16px 0}
.tps-community-actions form{margin:0}
.tps-community-metrics{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.tps-community-metrics>div{flex:1;background:#f4f6f8;border-radius:10px;padding:15px;min-width:110px}
.tps-community-metrics strong{font-size:1.6rem;display:block;color:#142a3c}
.tps-community-metrics small{color:#637484}
.tps-community-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px;margin:16px 0}
.tps-community-photos img{width:100%;height:145px;object-fit:cover;border-radius:12px}
.tps-community-photos figure{margin:0}
.tps-community-photos figcaption{font-size:.82rem;margin-top:4px}
.tps-community-pre{white-space:pre-line;overflow-wrap:anywhere}
.tps-community-form{display:grid;gap:10px;max-width:780px}
.tps-community-form label,.tps-community-admin label{font-weight:700;margin-top:5px}
.tps-community-form input:not([type="checkbox"]),.tps-community-form select,.tps-community-form textarea,
.tps-community-filter input,.tps-community-filter select,.tps-community-inline input,.tps-community-inline select,
.tps-community-admin input:not([type="checkbox"]),.tps-community-admin select,.tps-community-admin textarea{width:100%;min-width:0;border:1px solid #cdd5de;border-radius:9px;padding:10px 11px;background:white;color:#192c3b;font:inherit}
.tps-community-form textarea,.tps-community-admin textarea{min-height:90px}
.tps-community-form input[type="file"]{padding:10px}
.tps-community-form .tps-personal-btn{justify-self:start}
.tps-community-form-block{display:grid;gap:10px;padding:16px;background:#f6f7f9;border-radius:11px}
.tps-community-check{display:flex;align-items:center;gap:10px;font-weight:500!important}
.tps-community-check input{width:auto}
.tps-community-filter{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0 20px}
.tps-community-filter input,.tps-community-filter select{max-width:260px}
.tps-community-inline{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tps-community-inline select{max-width:150px}
.tps-community-status{color:#51677c;background:#eef1f4;border-radius:15px;padding:5px 10px;font-size:.8rem;font-weight:700}
.tps-community-event{padding:16px 0;border-left:3px solid #d3223b;padding-left:16px;border-bottom:1px solid #ebedf0;margin-left:6px}
.tps-community-event strong{display:block;color:#1b3040}
.tps-community-event small{color:#647687}
.tps-community-data{display:grid;grid-template-columns:160px minmax(0,1fr);gap:6px 14px}
.tps-community-data dt{font-weight:700}
.tps-community-data dd{overflow-wrap:anywhere;margin:0}
.tps-community-contribution-photo{max-width:500px;width:100%;border-radius:12px}
.tps-community-ranked{list-style:none;padding:0}
.tps-community-ranked li{display:flex;align-items:center;gap:12px;border-bottom:1px solid #eff0f3}
.tps-community-rank{background:#eef0f3;border-radius:7px;padding:6px 10px;font-weight:800}
.tps-community-flag{position:relative}
.tps-community-flag summary{cursor:pointer;font-size:.86rem;color:#6a7785}
.tps-community-flag form{background:white;border:1px solid #e4e8ed;padding:12px;border-radius:10px;display:grid;gap:8px;min-width:220px;box-shadow:0 8px 25px rgba(10,25,40,.09)}
.tps-community-admin{color:#182b3c}
.tps-community-admin h1{font-size:1.8rem;margin:0 0 20px}
.tps-community-admin .tps-community-entry{color:#1d2d40}
.tps-community-admin .tps-community-form textarea{min-height:80px}
.tps-community .tps-personal-empty{padding:14px 0;color:#596c7a}
@media(max-width:800px){.tps-community-columns{grid-template-columns:1fr}.tps-community .tps-personal-card{padding:16px}.tps-community-entry{flex-wrap:wrap}.tps-community-entry form{margin:0}.tps-community-data{grid-template-columns:1fr}.tps-community-inline{width:100%}.tps-community-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Fase 4 - knoppen en velden. De communitypagina's laden de losse fase-1-CSS
   niet: alle knoppen moeten hier zelfstandig gestyled worden. */
.tps-community a.tps-personal-btn,
.tps-community button.tps-personal-btn,
.tps-community-admin a.tps-personal-btn,
.tps-community-admin button.tps-personal-btn {
  appearance:none;
  -webkit-appearance:none;
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  max-width:100%;
  padding:10px 17px;
  border:1px solid #e00820;
  border-radius:10px;
  background:#e00820;
  color:#fff !important;
  font-family:inherit;
  font-weight:750;
  font-size:.88rem;
  line-height:1.3;
  text-decoration:none;
  text-align:center;
  cursor:pointer;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.tps-community a.tps-personal-btn:hover,
.tps-community button.tps-personal-btn:hover,
.tps-community-admin a.tps-personal-btn:hover,
.tps-community-admin button.tps-personal-btn:hover {
  background:#c8071d;
  border-color:#c8071d;
  color:#fff !important;
  text-decoration:none;
}
.tps-community a.tps-personal-btn.is-light,
.tps-community button.tps-personal-btn.is-light,
.tps-community-admin a.tps-personal-btn.is-light,
.tps-community-admin button.tps-personal-btn.is-light {
  background:#fff;
  border-color:#d5e0e9;
  color:#173149 !important;
}
.tps-community a.tps-personal-btn.is-light:hover,
.tps-community button.tps-personal-btn.is-light:hover,
.tps-community-admin a.tps-personal-btn.is-light:hover,
.tps-community-admin button.tps-personal-btn.is-light:hover {
  background:#fff5f6;
  border-color:#d71b33;
  color:#c8071d !important;
}
.tps-community :is(a,button).tps-personal-btn:focus-visible,
.tps-community-admin :is(a,button).tps-personal-btn:focus-visible,
.tps-community input:focus-visible,
.tps-community textarea:focus-visible,
.tps-community select:focus-visible,
.tps-community-admin input:focus-visible,
.tps-community-admin textarea:focus-visible,
.tps-community-admin select:focus-visible {
  outline:3px solid rgba(224,8,32,.24);
  outline-offset:2px;
}
.tps-community :is(a,button).tps-personal-btn:disabled,
.tps-community-admin :is(a,button).tps-personal-btn:disabled {
  opacity:.55;
  cursor:not-allowed;
}
.tps-community .tps-personal-actions,
.tps-community-admin .tps-personal-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
}
.tps-community .tps-personal-card>header>a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:7px 12px;
  border:1px solid #d5e0e9;
  border-radius:9px;
  background:#fff;
  color:#c8071d;
  font-size:.82rem;
  font-weight:750;
  text-decoration:none;
}
.tps-community .tps-personal-card>header>a:hover {
  border-color:#e00820;
  background:#fff5f6;
  text-decoration:none;
}
.tps-community :is(input,select,textarea),
.tps-community-admin :is(input,select,textarea) { font-family:inherit; }
.tps-community :is(input,select,textarea):focus,
.tps-community-admin :is(input,select,textarea):focus {
  border-color:#e00820;
}
.tps-community input[type="checkbox"],
.tps-community-admin input[type="checkbox"] {
  width:18px;
  height:18px;
  flex:0 0 auto;
  accent-color:#e00820;
}
.tps-community input[type="file"]::file-selector-button,
.tps-community-admin input[type="file"]::file-selector-button {
  margin-right:12px;
  padding:8px 12px;
  border:1px solid #d5e0e9;
  border-radius:8px;
  background:#f4f6f8;
  color:#153049;
  font-family:inherit;
  font-weight:700;
  cursor:pointer;
}
.tps-community input[type="file"]::file-selector-button:hover,
.tps-community-admin input[type="file"]::file-selector-button:hover {
  border-color:#e00820;
  color:#c8071d;
}
.tps-community .tps-community-flag :is(input,select) {
  min-width:0;
  border:1px solid #d5e0e9;
  border-radius:8px;
  padding:9px 10px;
  background:#fff;
  color:#173149;
}
@media(max-width:520px) {
  .tps-community .tps-community-filter { align-items:stretch; }
  .tps-community .tps-community-filter input,
  .tps-community .tps-community-filter select { max-width:none; flex:1 1 100%; }
  .tps-community .tps-community-inline { align-items:stretch; }
  .tps-community .tps-community-inline select { max-width:none; flex:1 1 auto; }
  .tps-community .tps-personal-actions { gap:8px; }
}
