/* Shared secondary-page branding. Public document content uses site.css. */
.activity-panel input[type="date"] { max-width: 240px; }
.activity-editor-photo { margin: 10px 0; max-width: 620px; }
.activity-editor-photo img { display: block; max-height: 420px; width: 100%; object-fit: contain; background: #eef4f3; border-radius: 10px; }
.activity-editor-photo figcaption { margin-top: 8px; font-size: .78rem; color: #526d68; }
.activity-admin-list { margin-top: 24px; }
.activity-admin-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-top: 1px solid #dbe6e5; }
.activity-admin-item > div { min-width: 0; }
.activity-admin-item h3 { margin: 10px 0 4px; overflow-wrap: anywhere; }
.activity-admin-item time { font-size: .8rem; color: #526d68; }
.activity-item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; flex-shrink: 0; }
.activity-item-actions a, .activity-item-actions button { border: 1px solid #bbd5d1; border-radius: 6px; background: #f4faf9; color: #215d57; padding: 9px 13px; font-size: .82rem; font-weight: 650; }
@media (max-width: 640px) { .activity-admin-item { display: block; } .activity-item-actions { margin-top: 16px; } }
.document-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #e2ebea;
  background: #fff;
}
.document-header .brand { font-size: .8rem; line-height: 1.35; color: #44605e; }
.document-header .brand strong { font-family: Georgia, serif; font-size: 1.45rem; color: #202020; }
.document-header > a:last-child { font-size: .85rem; font-weight: 650; color: #136c6d; }
.document-footer {
  padding: 26px 24px;
  background: #16dadd;
  color: #164546;
  text-align: center;
  font-size: .8rem;
  line-height: 2.3;
}
.document-footer a { text-decoration: underline; text-underline-offset: 4px; }

/* All management styles are scoped so shared legal pages retain their layout. */
.panel-login, .panel-shell { --panel-border: #dbe6e5; --panel-dark: #155f62; }
.panel-login {
  width: min(480px, calc(100% - 36px));
  margin: 68px auto 90px;
  padding: 44px 42px;
  border: 1px solid var(--panel-border);
  border-top: 6px solid #16dadd;
  border-radius: 18px;
  box-shadow: 0 16px 70px #0b444411;
  background: #fff;
}
.panel-eyebrow { color: var(--panel-dark); font-size: .7rem; font-weight: 750; letter-spacing: 2px; margin-bottom: 12px; }
.panel-login h1, .panel-shell h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -1px; line-height: 1.2; }
.panel-login > p { margin-top: 17px; font-size: .92rem; }
.panel-shell { width: min(1180px, calc(100% - 48px)); margin: 48px auto 76px; }
.panel-top, .panel-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-top-actions { gap: 12px; }
.panel-top-actions form { margin: 0; }
.panel-top .btn-outline { border-color: #b5cdca; color: var(--panel-dark); background: white; }
.panel-top .btn-outline:hover { background: #eef8f7; }
.panel-shell .btn-teal, .panel-login .btn-teal { color: #123e3f; }
.panel-shell .btn-teal:hover, .panel-login .btn-teal:hover { color: #123e3f; background: #57e5e6; }
.panel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 27px;
  margin: 24px 0 6px;
  border-bottom: 1px solid var(--panel-border);
}
.panel-nav a { padding: 9px 15px; border: 1px solid #d3e5e3; border-radius: 7px; background: #f5f9f9; font-size: .87rem; font-weight: 650; color: #285956; }
.panel-nav a:hover { border-color: #16b9bd; background: #dff9f8; }
.panel-section {
  margin-top: 28px;
  padding: 34px 38px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 28px #103d3c05;
  scroll-margin-top: 24px;
}
.panel-section h2 { font-size: 1.5rem; letter-spacing: -.5px; line-height: 1.4; }
.panel-section h3 { font-size: 1.13rem; margin-top: 28px; }
.panel-section > p, .panel-section-heading p { font-size: .9rem; margin-top: 9px; line-height: 1.7; }
.panel-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.panel-badge { padding: 6px 12px; border-radius: 30px; background: #e7f7f3; color: #1e6558; font-weight: 650; font-size: .76rem; white-space: nowrap; }
.panel-form { display: flex; flex-direction: column; align-items: stretch; gap: 9px; margin-top: 25px; }
.panel-form label { font-size: .86rem; font-weight: 650; margin-top: 12px; color: #294340; line-height: 1.6; }
.panel-form > label:first-of-type { margin-top: 0; }
.panel-form input:not([type="checkbox"]):not([type="hidden"]), .panel-form textarea, .panel-form select {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #c7d8d6;
  border-radius: 7px;
  background: #fff;
  color: #203b39;
  font-size: .94rem;
  line-height: 1.6;
}
.panel-form input[type="file"] { padding: 15px; background: #f4f9f8; border-style: dashed; }
.panel-form input[type="file"]::file-selector-button { border: 1px solid #aac9c5; border-radius: 5px; background: white; padding: 7px 12px; margin-right: 14px; color: #285956; cursor: pointer; }
.panel-form textarea { min-height: 110px; resize: vertical; }
.panel-form :is(input, textarea, select):focus-visible { outline: 3px solid #16dadd50; outline-offset: 1px; border-color: #198f91; }
.panel-form > .btn { align-self: flex-start; margin-top: 16px; min-height: 46px; }
.panel-login .panel-form > .btn { align-self: stretch; }
.panel-form > a { align-self: flex-start; margin-top: 9px; color: #136c6d; font-size: .87rem; text-decoration: underline; text-underline-offset: 3px; }
.panel-form .panel-check { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; border-radius: 7px; background: #eef8f7; font-size: .86rem; font-weight: 550; }
.panel-check input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: #148e8f; margin: 4px 0 0; }
.panel-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel-columns > div { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.panel-help { color: #5e706d; font-size: .78rem; line-height: 1.7; }
.panel-form .panel-help { margin: 0; }
.panel-alert { padding: 16px 20px; border: 1px solid; border-radius: 8px; margin: 22px 0; font-size: .91rem; line-height: 1.7; overflow-wrap: anywhere; }
.panel-alert.error { color: #8f3023; border-color: #e4b4a8; background: #fff4f0; }
.panel-alert.success { color: #215d34; border-color: #9ec7a9; background: #ecf7ef; }
.upload-form { padding: 24px; background: #f6f9f9; border: 1px solid #e0e9e8; border-radius: 10px; }
.panel-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 30px; }
.panel-photo { overflow: hidden; border: 1px solid var(--panel-border); border-radius: 11px; background: white; }
.panel-photo > img, .panel-photo > .hidden-photo { width: 100%; height: 205px; object-fit: cover; }
.hidden-photo { display: grid; place-items: center; padding: 30px; background: #edf2f1; color: #647471; text-align: center; font-size: .83rem; }
.panel-photo .panel-form { padding: 19px; margin-top: 0; }
.panel-photo .panel-form label { font-size: .77rem; }
.panel-photo .panel-form input { font-size: .83rem!important; padding: 9px 10px!important; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.photo-actions button { padding: 7px 11px; min-height: 38px; border: 1px solid #c7d8d6; border-radius: 5px; color: #285956; background: white; font-size: .75rem; font-weight: 650; }
.photo-actions button:hover:not(:disabled) { background: #e5f9f7; border-color: #54b2ab; }
.photo-actions button[value="save"] { background: #d4f8f6; border-color: #a3dcda; }
.photo-actions button:disabled { opacity: .4; cursor: default; }
.panel-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-bottom: 15px; border-bottom: 1px solid var(--panel-border); }
.panel-tabs a { padding: 9px 14px; color: #285956; font-size: .85rem; border-radius: 6px; background: #f3f7f6; border: 1px solid #d3e2df; }
.panel-tabs a[aria-current="page"] { background: #16dadd; color: #143f40; font-weight: 700; border-color: #16dadd; }
.panel-status { display: grid; grid-template-columns: minmax(150px, .5fr) 1fr; margin: 24px 0; font-size: .9rem; }
.panel-status dt, .panel-status dd { margin: 0; padding: 12px 0; border-bottom: 1px solid #e6eded; overflow-wrap: anywhere; }
.panel-status dt { color: #586d69; }
.panel-status dd { font-weight: 600; color: #264441; }
.panel-section > ul { padding-left: 20px; font-size: .86rem; color: #506660; overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .panel-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-top { align-items: flex-start; }
  .panel-top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .panel-section { padding: 29px; }
}
@media (max-width: 640px) {
  .document-header { padding: 18px; gap: 14px; }
  .document-header .brand { font-size: .69rem; }
  .document-header .brand strong { font-size: 1.2rem; }
  .document-header .brand img { width: 40px; height: 40px; }
  .document-header > a:last-child { font-size: .74rem; text-align: right; max-width: 95px; }
  .panel-login { margin: 36px auto 55px; padding: 32px 24px; }
  .panel-shell { width: calc(100% - 28px); margin-top: 30px; }
  .panel-top { display: block; padding: 0 5px; }
  .panel-top-actions { justify-content: flex-start; margin-top: 24px; gap: 10px; }
  .panel-top-actions .btn { padding: 10px 14px; font-size: .78rem; }
  .panel-nav { margin-top: 16px; padding-bottom: 20px; gap: 8px; }
  .panel-nav a { padding: 8px 11px; font-size: .78rem; }
  .panel-section { padding: 25px 20px; margin-top: 20px; border-radius: 11px; }
  .panel-section-heading { display: block; }
  .panel-badge { display: inline-block; margin-top: 16px; }
  .panel-columns, .panel-gallery { grid-template-columns: 1fr; gap: 15px; }
  .panel-form input:not([type="checkbox"]):not([type="hidden"]), .panel-form textarea, .panel-form select { font-size: 1rem; }
  .panel-form > .btn { align-self: stretch; }
  .upload-form { padding: 19px 15px; margin-left: -5px; margin-right: -5px; }
  .panel-photo > img, .panel-photo > .hidden-photo { height: 225px; }
  .panel-status { grid-template-columns: .75fr 1fr; font-size: .8rem; }
  .panel-status dt { padding-right: 16px; }
}
