/* TRDB v0.9: factual news feed and account clarity. No third-party assets. */
.news-lines{display:flex;flex-direction:column;gap:0}
.news-first .news-line{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 0}
.news-first .news-line + .news-line{border-top:1px solid rgba(189,167,125,.16)}
.news-first .news-primary{min-width:0;overflow-wrap:anywhere;line-height:1.45}
.news-first .news-date{white-space:nowrap}
.news-first .news-unavailable{padding:12px 0;margin:0;color:#d0c7b4}
.news-first .news-foot{line-height:1.6}
.news-source-disclosure{margin-top:18px;font-size:12px;color:#b7b6a7;line-height:1.7}
.account-closed{padding:22px;background:#233129;border:1px solid #526a56;color:#e2e5d9;line-height:1.75;margin:12px 0 20px}
.account-closed strong{font-size:16px;color:#eddaa9}
.account-closed p{margin:9px 0 16px}
.account-closed a{display:inline-flex}
.legacy-login{border-top:1px solid #4a5747;margin-top:18px;padding-top:14px}
.legacy-login summary{cursor:pointer;color:#dec18b;font-size:13px;padding:8px 0;list-style-position:inside}
.legacy-login .account-form{padding:12px 0 0}
@media(max-width:650px){
 .news-first .news-line{grid-template-columns:auto minmax(0,1fr) auto;gap:6px 10px;padding:13px 0}
 .news-first .news-date{grid-column:2;grid-row:1;font-size:11px}
 .news-first .news-tag{grid-column:1;grid-row:1}
 .news-first .news-primary{grid-column:1 / 3;grid-row:2}
 .news-first .news-arrow{grid-column:3;grid-row:1 / 3;justify-self:end}
}
.local-build-library{margin-top:22px;padding-top:19px;border-top:1px solid #52614f}
.local-library-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.local-library-heading h3{font-size:16px;margin:0;color:#e9d3aa}
.local-library-heading span{font-size:12px;color:#c4bca4;font-variant-numeric:tabular-nums}
.local-build-library p{font-size:12px;line-height:1.7;color:#b9b9ac;margin:9px 0 13px}
.local-library-list{display:flex;flex-direction:column;gap:8px;margin-top:15px}
.local-library-row{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:12px;background:#17221b;border:1px solid #435746;min-width:0}
.local-library-row>div:first-child{min-width:0;flex:1}
.local-library-row strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#e9debf}
.local-library-row small{display:block;font-size:10px;color:#afb5a8;margin-top:4px}
.local-library-actions{display:flex;gap:5px;flex-shrink:0}
.local-library-actions .btn{padding:7px 9px}
@media(max-width:650px){.local-library-row{flex-wrap:wrap}.local-library-actions{margin-left:auto}}

@media (max-width: 650px) {
  .local-library-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .local-library-actions .btn, #library-save { min-width: 44px; min-height: 44px; }
  .local-library-row small { font-size: 12px; }
}
@media (max-width: 380px) {
  .local-library-row { grid-template-columns: minmax(0, 1fr); }
  .local-library-actions { margin-left: 0; flex-wrap: wrap; }
}

.planner-primary .btn, .planner-more .btn { min-height: 44px; }
.planner-more { margin-top: 16px; }
.planner-more summary { cursor: pointer; padding: 12px 0; width: fit-content; }
.planner-more summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.planner-more .editor-footer { justify-content: flex-start; margin-top: 0; }
@media (max-width: 480px) {
  .planner-primary, .planner-more .editor-footer {
    display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 9rem),1fr));
  }
  .planner-primary .btn, .planner-more .btn { white-space: normal; text-align: center; }
}
@media (max-width: 650px) {
  .slot-row button[data-remove-slot], #add-slot, #export-library { min-height: 44px; min-width: 44px; }
  input[data-field], textarea[data-field], .slot-row input[data-slot] { font-size: 16px; }
}

#build-preview .preview-line > span,
#build-preview .preview-line > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.record-source { display: block; margin-top: .25rem; font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; }

/* Inner pages share one primary heading with the same scale as the original section titles. */
.page-heading h1, .class-detail-top h1 {
  max-width: none;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.25;
  margin: 0;
}
.class-detail-top h1 { font-size: 44px; margin: 8px 0; }
.pt-heading { max-width: none; line-height: 1.25; }
@media (max-width: 650px) {
  .page-heading h1 { font-size: 27px; }
  .class-detail-top h1 { font-size: 29px; }
  .news-all, .preview-mechanic a, .skill-label a, .record-source a, .data-source-note a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

.library-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.library-tools .btn { white-space: normal; min-height: 44px; }
