/* Shared reader/composer styles: retain SALGO's gold accent and typography. */
.attachment-dropzone {
  align-items: center; background: #fffcf3; border: 1px dashed #ad8a2c; border-radius: 8px;
  color: #403820; display: flex; flex-direction: column; gap: 8px; padding: 26px 16px;
  text-align: center; width: 100%; transition: background .18s, border-color .18s, transform .18s;
}
.attachment-dropzone > i { color: #966c05; font-size: 2rem; }
.attachment-dropzone > span { color: #625d51; font-size: .8rem; }
.attachment-dropzone:hover, .attachment-dropzone.is-dragging { background: #fff3cb; border-color: #715000; transform: translateY(-2px); }
.attachment-dropzone:focus-visible, .attachment-row button:focus-visible { outline: 3px solid #926400; outline-offset: 3px; }
.attachment-list { display: grid; gap: 12px; margin-top: 16px; }
[data-attachment-manager] { scroll-margin-top: 84px; }
.attachment-row { background: #fff; border: 1px solid #dfe3e9; border-radius: 8px; padding: 16px; animation: pdf-enter .2s ease-out; }
.attachment-row.has-error { border-color: #c33232; }
.attachment-row.has-error [data-status] { color: #a72121; }
.attachment-row-main { align-items: center; display: flex; gap: 14px; }
.attachment-pdf-icon { color: #a62b24; font-size: 1.7rem; }
.attachment-row-info { flex: 1; min-width: 0; }
.attachment-row-info small { overflow-wrap: anywhere; }
.attachment-row-info .form-label { color: #5d6470; margin-bottom: 4px; }
.attachment-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.attachment-row-actions button { min-height: 38px; min-width: 38px; }
.attachment-row-actions button[data-action="remove"] { margin-left: auto; }
.attachment-row progress { accent-color: #a97600; height: 8px; width: 100%; }
.attachment-row [data-status] { color: #5d6470; font-size: .78rem; }
.attachment-feedback { overflow-wrap: anywhere; }
[data-doc-composer] .card { border-color: #e1e4e8; border-radius: 8px; }
[data-doc-composer] .card-header { background: #fff; padding: 16px 20px; }
[data-doc-composer] .card-body { padding: 20px; }
[data-doc-composer] .tox-tinymce { border-color: #d6dce4; border-radius: 6px; }
.document-attachments { background: #fafbfc; border: 1px solid #e2e6eb; border-radius: 6px; margin-top: 32px; padding: 24px; }
.document-attachments-heading { align-items: start; display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.document-attachments-heading h2 { color: #2b2d30; font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin: 0 0 6px; }
.document-attachments-heading p { color: #68665f; font-size: .88rem; margin: 0; }
.document-attachments-heading > i { color: #8b6918; font-size: 1.5rem; }
.document-attachments-list { list-style: none; margin: 0; padding: 0; }
.document-attachment { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; padding: 20px 0; }
.document-attachment + .document-attachment { border-top: 1px solid #eeece6; }
.document-attachment:last-child { padding-bottom: 0; }
.document-attachment-icon { align-items: center; background: #fdf0ee; border-radius: 6px; color: #a62b24; display: flex; font-size: 1.5rem; height: 48px; justify-content: center; width: 42px; }
.document-attachment-info { flex: 1; min-width: 180px; }
.document-attachment-info h3 { color: #292b2e; font-size: .9rem; font-weight: 500; line-height: 1.5; margin: 0 0 4px; overflow-wrap: anywhere; }
.document-attachment-info p { color: #696b70; font-size: .75rem; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.document-attachment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.document-attachment-actions .btn { font-size: .82rem; min-height: 40px; padding: 9px 12px; white-space: nowrap; transition: transform .16s, background-color .16s; }
.document-attachment-actions .btn:hover { transform: translateY(-2px); }
.inline-pdf { flex: 0 0 100%; min-width: 0; border: 1px solid #dce2e3; border-radius: 6px; overflow: hidden; background: #edf0f1; animation: pdf-enter .2s ease-out; }
.inline-pdf[hidden] { display: none; }
.inline-pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; background: #111719; color: #e1e5df; font-size: .75rem; }
.inline-pdf-toolbar button { min-height: 38px; min-width: 38px; border: 1px solid #ffffff30; border-radius: 4px; background: #ffffff08; color: inherit; padding: 6px 10px; }
.inline-pdf-toolbar button:disabled { opacity: .35; }
.inline-pdf-pages,.inline-pdf-zoom { display: flex; align-items: center; gap: 6px; }
.inline-pdf-zoom { margin-left: auto; }
.inline-pdf-pages input { width: 48px; height: 38px; color: #202926; border: 0; border-radius: 3px; text-align: center; }
.inline-pdf-status { font-size: .75rem; margin: 0; padding: 8px 14px; color: #53615d; }
.inline-pdf-retry { margin: 0 14px 14px; }
.inline-pdf-viewport { height: min(72vh,720px); min-height: 320px; overflow: auto; overscroll-behavior: contain; padding: 16px; }
.inline-pdf-page { position: relative; margin: 0 auto; background: #fff; box-shadow: 0 4px 18px #11171912; }
.inline-pdf-page canvas { display: block; }
.inline-pdf-page .textLayer { z-index: 1; }
@media(max-width:575.98px) { .inline-pdf-toolbar { gap: 8px; } .inline-pdf-zoom { margin-left: 0; } .inline-pdf-viewport { height: 60vh; } }
.doc-content .article-video { margin: 20px 0 32px; }
.doc-content .article-video-frame { display: block; width: 100%; height: auto; min-height: 200px; aspect-ratio: 16/9; border: 1px solid #dce2e3; border-radius: 6px; background: #111719; }
.doc-content .article-video figcaption { margin-top: 10px; font-size: .8rem; line-height: 1.7; text-align: right; }
.doc-content .sirocco-video-section { padding-top: 12px; }
.doc-content img.article-image-small { max-width: min(100%, 320px); }
.doc-content img.article-image-wide { max-height: none; max-width: 100%; }
@keyframes pdf-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 575.98px) {
  .document-attachment { gap: 12px; }
  .document-attachment-info { min-width: 0; flex-basis: calc(100% - 60px); }
  .document-attachment-actions { width: 100%; }
  .document-attachment-actions .btn { flex: 1; }
  [data-doc-composer] .card-body { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .attachment-row { animation: none; }
  .attachment-dropzone, .document-attachment-actions .btn { transition: none; transform: none !important; }
}
