/* Shared capsule language for interface controls; photographs keep their original edges. */
:root {
  --ui-radius: 24px;
  --ui-shadow: 0 8px 28px #00000012;
  --ui-border: #e1e1e1;
}
button {
  border-radius: var(--ui-radius);
}
dialog {
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  box-shadow: 0 18px 70px #00000026;
}
input,
textarea,
select {
  border-radius: 12px;
}
.print-available {
  border-radius: 20px;
}
.view-tools .grid-link,
.to-top {
  border-radius: 14px;
}
.viewer-actions a {
  border-radius: 20px;
}
.admin-entry .admin-login input {
  border: 1px solid #444;
  border-radius: 24px;
  background: #ffffff04;
  padding: 10px 14px;
}
.admin-entry .admin-login > button {
  padding: 10px 18px;
  border: 1px solid #555;
  border-radius: 24px;
}
.admin-block-menu {
  border-radius: 24px;
  padding: 9px;
  border-color: var(--ui-border);
  box-shadow: var(--ui-shadow);
}
.admin-block-menu button {
  border-radius: 20px;
  padding: 10px 14px;
}
.admin-block-menu button:hover {
  color: #fff;
  background: #111;
}
.admin-flow-draft {
  border-radius: 24px;
}
.admin-text-toolbar button,
.admin-modal-toolbar button {
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.admin-text-toolbar button:hover,
.admin-modal-toolbar button:hover {
  background: #eee;
  color: #111;
}
.admin-draft-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.admin-draft-actions button,
.admin-modal-actions button {
  border: 1px solid #ddd;
  padding: 11px 18px;
  font:
    14px/1.3 'PT Sans',
    Arial,
    sans-serif;
  background: #fafafa;
  color: #444;
  border-radius: 24px;
}
.admin-draft-actions button.ui-primary,
.admin-modal-actions button.ui-primary {
  background: #111;
  color: #fafafa;
  border-color: #111;
}
.admin-draft-actions button:hover,
.admin-modal-actions button:hover {
  background: #e9e9e9;
  color: #111;
}
.admin-draft-actions button.ui-primary:hover,
.admin-modal-actions button.ui-primary:hover {
  background: #333;
  color: #fff;
}
.admin-mode [data-flow-block] {
  position: relative;
}
.admin-post-pencil {
  position: absolute;
  right: -48px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fafafae6;
  color: #999;
  opacity: 0.7;
  z-index: 2;
}
.admin-post-pencil svg {
  width: 19px;
  height: 19px;
}
.admin-post-pencil:hover,
.admin-post-pencil:focus-visible {
  opacity: 1;
  background: #111;
  color: #fff;
}
.admin-draft-pencil {
  right: -16px;
  top: 34px;
}
.admin-post-delete {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #999;
  font: inherit;
  border: 0;
  background: none;
  padding: 0;
  white-space: nowrap;
}
.admin-post-delete svg {
  width: 14px;
  height: 14px;
}
.admin-post-delete:hover {
  color: #111;
}
.admin-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
#admin-confirm {
  padding: 42px;
  width: 380px;
  text-align: center;
  font:
    24px/1.3 'PT Sans',
    Arial,
    sans-serif;
}
#admin-confirm .admin-modal-actions {
  justify-content: center;
}
#admin-exit {
  border-radius: 24px;
  box-shadow: 0 18px 70px #00000026;
}
#admin-exit button {
  border: 1px solid #ddd;
  border-radius: 24px;
  padding: 9px 22px;
}
#admin-exit button:first-child {
  background: #111;
  color: #fff;
  border-color: #111;
}
#admin-text-modal {
  width: min(860px, 85vw);
  padding: 36px;
  max-height: 85svh;
}
.admin-modal-title {
  font:
    18px/1.3 'PT Sans',
    Arial,
    sans-serif;
  margin-bottom: 20px;
}
.admin-modal-toolbar {
  display: flex;
  gap: 8px;
  color: #777;
  margin-bottom: 14px;
}
.admin-modal-toolbar button:nth-child(1) {
  font-weight: bold;
}
.admin-modal-toolbar button:nth-child(2) {
  font-style: italic;
}
.admin-modal-toolbar button:nth-child(3) {
  text-decoration: underline;
}
.admin-modal-toolbar button:nth-child(4) {
  text-decoration: line-through;
}
#admin-post-text-editor {
  min-height: 200px;
  max-height: 45svh;
  overflow: auto;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 20px;
  outline-offset: 3px;
}
#admin-notice {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fafafa;
  border-radius: 24px;
  padding: 12px 20px;
  max-width: 75vw;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  z-index: 60;
  box-shadow: var(--ui-shadow);
}
.flow-editor button {
  border-radius: 24px;
}
.flow-editor input,
.flow-editor textarea,
.flow-editor select {
  border-radius: 14px;
}
.flow-edit-text {
  border-radius: 14px;
}
.print-request-options a,
.print-request-options button {
  border-radius: 24px;
}
#admin-video-modal {
  width: min(720px, 85vw);
  padding: 36px;
}
.admin-video-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.admin-video-services button {
  font:
    14px/1.3 'PT Sans',
    Arial,
    sans-serif;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 24px;
  background: transparent;
  color: #777;
}
.admin-video-services [aria-selected='true'] {
  background: #111;
  color: #fafafa;
  border-color: #111;
}
.admin-video-input-label {
  display: block;
  font:
    13px/1.3 'PT Sans',
    Arial,
    sans-serif;
  color: #888;
  margin: 0 0 10px;
}
#admin-video-source {
  display: block;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: transparent;
  padding: 16px;
  resize: vertical;
  font:
    15px/1.4 'PT Sans',
    Arial,
    sans-serif;
  color: #111;
}
.admin-video-error {
  min-height: 18px;
  font:
    13px/1.35 'PT Sans',
    Arial,
    sans-serif;
  color: #a33;
  margin-top: 10px;
}
.admin-draft-block > .flow-video {
  margin-bottom: 0;
}
.admin-draft-block > .flow-video iframe {
  border-radius: 0;
}
.admin-draft-actions .admin-discard-draft {
  width: 42px;
  height: 42px;
  padding: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.admin-discard-draft svg {
  width: 19px;
  height: 19px;
}
.admin-draft-actions .admin-discard-draft:hover {
  background: #111;
  color: #fff;
}
.admin-site-copy {
  position: relative;
}
.admin-site-pencil {
  top: 0;
}
.contact-links p {
  margin: 0;
}
.admin-contact-links-editor p {
  margin-bottom: 12px;
}
.admin-contact-links-editor a {
  display: inline-block;
}
.intro p {
  margin: 0;
}
.about-copy > .admin-site-copy > .admin-site-pencil {
  font-family: 'PT Sans', Arial, sans-serif;
}
.admin-mode .contact-links {
  overflow: visible;
}

#app.page-changing {
  pointer-events: none;
}

.admin-avatar-edit {
  position: absolute;
  left: 41px;
  bottom: 35px;
  width: 26px;
  height: 26px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fafafa;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 3px 10px #00000012;
}
.admin-avatar-edit svg {
  width: 15px;
  height: 15px;
}
.admin-avatar-edit:hover {
  background: #111;
  color: #fff;
}
.admin-author-photo-edit {
  right: 12px;
  top: 12px;
  opacity: 1;
  box-shadow: 0 4px 18px #00000012;
}
.content-language-flags {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.content-language-flags button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  opacity: 0.45;
}
.content-language-flags button[aria-pressed='true'] {
  border-color: #999;
  background: #fafafa;
  opacity: 1;
}
.content-language-flags button:hover {
  opacity: 1;
}
.content-language-flags img {
  display: block;
  width: 20px;
  height: 16px;
  object-fit: contain;
}
.language-filled-dot {
  position: absolute;
  right: 1px;
  bottom: 0;
  width: 3px;
  height: 3px;
  background: #777;
  border-radius: 50%;
}
.admin-text-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-right: 20px;
}
.admin-text-heading .admin-modal-title {
  margin-bottom: 0;
}
.photo-meta-language-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.photo-meta-language-heading .content-language-flags {
  gap: 2px;
}
.photo-meta-language-heading .content-language-flags button {
  width: 26px;
}
