/* Scoped to the Ethics and Conduct page. */
.ethics-copy { max-width: 920px; }
.ethics-copy p { line-height: 1.9; margin-bottom: 1.5rem; }
.ethics-library { background: #f5f7fa; }
.ethics-reader { max-width: 1200px; margin: 0 auto; text-align: center; }
.ethics-reader:focus-visible { outline: 3px solid #183f72; outline-offset: 6px; }
.ethics-toolbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.ethics-page-picker { display: flex; align-items: center; gap: .5rem; color: #183f72; margin: 0; }
.ethics-page-picker select { padding: .5rem; border: 1px solid #aebccd; border-radius: 4px; background: white; color: #183f72; }
.ethics-stage { position: relative; display: flex; align-items: center; justify-content: center; height: min(70vh, 720px); min-height: 240px; padding: 12px; overflow: hidden; background: #e5eaf0; border-radius: 8px; box-sizing: border-box; }
.ethics-book { width: 100%; height: 100%; margin: auto; flex-shrink: 0; }
.ethics-zoom-surface { position: relative; margin: auto; flex-shrink: 0; }
.ethics-zoom-surface > .ethics-book { position: absolute; top: 0; left: 0; transform-origin: top left; }
.ethics-zoom-controls { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 0 12px; color: #183f72; }
.ethics-zoom-controls button { padding: 5px 12px; min-width: 36px; border: 1px solid #aebccd; border-radius: 5px; background: #fff; color: #183f72; cursor: pointer; font-size: 16px; }
.ethics-zoom-controls output { min-width: 50px; font-weight: 600; }
.ethics-zoom-help { font-size: 13px; line-height: 1.4; margin: 0 0 8px; color: #183f72; }
.ethics-reader.is-magnified .ethics-stage { display: block; overflow: auto; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.ethics-reader.is-magnified .ethics-book { pointer-events: none; }
.ethics-book-page { background: #fff; overflow: hidden; box-shadow: 0 0 12px #14294526; }
.ethics-book-page img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.ethics-fallback-page, .ethics-sheet { max-width: 100%; max-height: 100%; cursor: pointer; }
.ethics-sheet img { max-width: 100%; max-height: 65vh; width: auto; height: auto; }
.ethics-status { margin: .75rem 0; color: #183f72; }
.ethics-reader [data-error] { margin-top: 1rem; color: #a52222; }
.ethics-reader button:disabled { opacity: .45; cursor: default; }
.ethics-modal-open { overflow: hidden; }
.ethics-modal { position: fixed; inset: 0; box-sizing: border-box; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px 24px; border: 0; background: #f5f7fa; color: #183f72; overflow: auto; }
.ethics-modal:not([open]) { display: none; }
.ethics-modal::backdrop { background: #142945e6; }
.ethics-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 12px; }
.ethics-modal-header h2 { font-size: 20px; line-height: 1.3; margin: 0; color: #183f72; }
.ethics-modal-close { border: 1px solid #183f72; border-radius: 5px; padding: 8px 16px; background: #fff; color: #183f72; cursor: pointer; white-space: nowrap; }
.ethics-modal .ethics-reader { max-width: none; }
.ethics-modal .ethics-stage { height: calc(100vh - 290px); height: calc(100dvh - 290px); }
.ethics-modal .ethics-toolbar { margin-bottom: 8px; }
@media (max-width: 575px) {
    .ethics-toolbar { gap: .65rem; }
    .ethics-toolbar .btn { padding: .6rem .75rem; font-size: .8rem; }
    .ethics-page-picker { font-size: .85rem; }
    .ethics-modal { padding: 12px 8px; }
    .ethics-modal-header h2 { font-size: 16px; }
    .ethics-modal .ethics-stage { height: calc(100dvh - 290px); }
}
