.drmt-announcements-shell {
  width: min(980px, calc(100vw - 32px));
  margin: 32px auto;
  font-family: inherit;
  color: #111827;
}
.drmt-announcements-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: white;
  border-radius: 28px;
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.drmt-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.drmt-announcements-hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: .95;
  font-weight: 900;
  color: white;
}
.drmt-announcements-hero p {
  max-width: 720px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
}
.drmt-announcement-card,
.drmt-empty-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .09);
}
.drmt-featured-card {
  border: 2px solid #2563eb;
}
.drmt-announcement-card.priority-urgent {
  border-color: #dc2626;
}
.drmt-media-wrap {
  width: 100%;
  background: #f3f4f6;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.drmt-media-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drmt-video-wrap {
  aspect-ratio: 16 / 9;
}
.drmt-video-wrap iframe,
.drmt-video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.drmt-card-body {
  padding: 28px;
}
.drmt-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}
.drmt-pill {
  color: white;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.drmt-pill-normal { background: #2563eb; }
.drmt-pill-featured { background: #16a34a; }
.drmt-pill-urgent { background: #dc2626; }
.drmt-card-body h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  color: #111827;
  font-weight: 900;
}
.drmt-card-content {
  color: #374151;
  font-size: 17px;
  line-height: 1.65;
}
.drmt-card-content p { margin: 0 0 14px; }
.drmt-announcement-button {
  display: inline-flex;
  margin-top: 12px;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: white !important;
  text-decoration: none !important;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 900;
  box-shadow: 0 12px 20px rgba(37,99,235,.22);
}
.drmt-announcement-button:hover { filter: brightness(.95); }
.drmt-announcements-list-heading h2 {
  margin: 28px 0 14px;
  font-size: 26px;
  font-weight: 900;
  color: #111827;
}
.drmt-announcements-list .drmt-announcement-card {
  display: grid;
  grid-template-columns: 260px 1fr;
}
.drmt-announcements-list .drmt-media-wrap {
  aspect-ratio: auto;
  min-height: 100%;
  height: 100%;
}
.drmt-announcements-list .drmt-card-body h2 {
  font-size: 25px;
}
.drmt-announcements-list .drmt-card-content {
  font-size: 16px;
}
.drmt-empty-card {
  padding: 34px;
  text-align: center;
}
.drmt-empty-card h2 { margin: 0 0 8px; }
.drmt-empty-card p { margin: 0; color: #6b7280; }
@media (max-width: 760px) {
  .drmt-announcements-shell { width: min(100%, calc(100vw - 20px)); margin: 18px auto; }
  .drmt-announcements-hero { padding: 24px; border-radius: 22px; }
  .drmt-card-body { padding: 22px; }
  .drmt-announcements-list .drmt-announcement-card { display: block; }
  .drmt-announcements-list .drmt-media-wrap { aspect-ratio: 16/9; height: auto; }
}

/* Breaking News alert button and popup */
.drmt-alert-wrap {
  font-family: inherit;
  width: min(980px, calc(100vw - 32px));
  margin: 18px auto;
}
.drmt-alert-inline .drmt-alert-button {
  width: 100%;
  justify-content: center;
  border-radius: 22px;
  padding: 18px 22px;
  font-size: 20px;
}
.drmt-alert-floating {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: auto;
  margin: 0;
  z-index: 9998;
}
.drmt-alert-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  background: #dc2626;
  color: #ffffff;
  font-weight: 950;
  letter-spacing: .01em;
  box-shadow: 0 16px 36px rgba(220, 38, 38, .28);
  transition: transform .15s ease, filter .15s ease;
}
.drmt-alert-button:hover { transform: translateY(-1px); filter: brightness(.97); }
.drmt-alert-icon { font-size: 1.15em; line-height: 1; }
.drmt-alert-wrap.priority-featured .drmt-alert-button,
.drmt-alert-wrap.priority-normal .drmt-alert-button { background: #2563eb; box-shadow: 0 16px 36px rgba(37, 99, 235, .25); }
.drmt-alert-floating .drmt-alert-button {
  border-radius: 999px;
  padding: 15px 19px;
  font-size: 16px;
}
.drmt-alert-modal[aria-hidden="true"] { display: none; }
.drmt-alert-modal[aria-hidden="false"] {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10000;
}
.drmt-alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .64);
  backdrop-filter: blur(4px);
}
.drmt-alert-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100vw - 28px));
  max-height: min(86vh, 820px);
  overflow: auto;
  margin: 6vh auto;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
}
.drmt-alert-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.drmt-alert-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f4f6;
  overflow: hidden;
}
.drmt-alert-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drmt-alert-content { padding: 28px; }
.drmt-alert-content h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  color: #111827;
}
.drmt-alert-content p {
  color: #374151;
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
}
.drmt-alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.drmt-alert-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 13px 18px;
  color: #111827 !important;
  background: #f3f4f6;
  text-decoration: none !important;
  font-weight: 900;
}
.drmt-alert-open { overflow: hidden; }
@media (max-width: 760px) {
  .drmt-alert-wrap { width: min(100%, calc(100vw - 20px)); margin: 12px auto; }
  .drmt-alert-inline .drmt-alert-button { font-size: 17px; padding: 15px 18px; }
  .drmt-alert-floating { right: 14px; bottom: 14px; }
  .drmt-alert-floating .drmt-alert-button { padding: 13px 16px; font-size: 15px; }
  .drmt-alert-dialog { margin: 4vh auto; max-height: 90vh; border-radius: 22px; }
  .drmt-alert-content { padding: 22px; }
}

/* Staff Announcement Dashboard */
.drmt-dashboard-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 28px auto;
  font-family: inherit;
  color: #111827;
}
.drmt-dashboard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
  color: #fff;
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  margin-bottom: 18px;
}
.drmt-dashboard-hero h1 {
  color: #fff;
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 950;
}
.drmt-dashboard-hero p {
  color: rgba(255,255,255,.88);
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  max-width: 780px;
}
.drmt-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
.drmt-dashboard-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
  padding: 24px;
  margin-bottom: 18px;
}
.drmt-dashboard-card h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 950;
  color: #111827;
}
.drmt-form-help,
.drmt-dashboard-tips,
.drmt-dashboard-card p {
  color: #4b5563;
}
.drmt-dashboard-form label {
  display: block;
  font-weight: 850;
  color: #111827;
  margin: 14px 0;
}
.drmt-dashboard-form input[type="text"],
.drmt-dashboard-form input[type="url"],
.drmt-dashboard-form input[type="date"],
.drmt-dashboard-form select,
.drmt-dashboard-form textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
}
.drmt-dashboard-form textarea {
  resize: vertical;
  min-height: 150px;
}
.drmt-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.drmt-dashboard-actions,
.drmt-manage-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.drmt-primary-button,
.drmt-secondary-button,
.drmt-danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  font-weight: 950;
  text-decoration: none !important;
  cursor: pointer;
  font: inherit;
  line-height: 1.2;
}
.drmt-primary-button {
  background: #2563eb;
  color: #fff !important;
  box-shadow: 0 10px 18px rgba(37,99,235,.22);
}
.drmt-secondary-button {
  background: #f3f4f6;
  color: #111827 !important;
}
.drmt-danger-button {
  background: #fee2e2;
  color: #991b1b !important;
}
.drmt-dashboard-notice {
  border-radius: 18px;
  padding: 14px 16px;
  font-weight: 900;
  margin-bottom: 18px;
}
.drmt-dashboard-notice.is-success {
  background: #dcfce7;
  color: #166534;
}
.drmt-dashboard-notice.is-error {
  background: #fee2e2;
  color: #991b1b;
}
.drmt-announcement-manage-list h2 {
  margin-bottom: 16px;
}
.drmt-manage-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.drmt-manage-item.priority-urgent {
  border-left: 6px solid #dc2626;
}
.drmt-manage-item.priority-featured {
  border-left: 6px solid #16a34a;
}
.drmt-manage-item.priority-normal {
  border-left: 6px solid #2563eb;
}
.drmt-manage-item h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 950;
}
.drmt-manage-item p {
  margin: 0;
  color: #4b5563;
}
.drmt-login-card .login-username label,
.drmt-login-card .login-password label {
  display: block;
  font-weight: 850;
  margin-bottom: 6px;
}
.drmt-login-card input[type="text"],
.drmt-login-card input[type="password"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px 13px;
}
.drmt-login-card .button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 10px 16px;
  font-weight: 900;
}
@media (max-width: 900px) {
  .drmt-dashboard-grid { grid-template-columns: 1fr; }
  .drmt-form-row { grid-template-columns: 1fr; }
  .drmt-manage-item { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .drmt-dashboard-shell { width: min(100%, calc(100vw - 20px)); margin: 16px auto; }
  .drmt-dashboard-hero, .drmt-dashboard-card { border-radius: 22px; padding: 20px; }
}


/* Phase 1.4: compact Breaking News popup, no internal slider */
.drmt-alert-dialog {
  width: min(600px, calc(100vw - 32px));
  max-height: none !important;
  overflow: visible !important;
  margin: 5vh auto;
  border-radius: 24px;
}
.drmt-alert-media {
  background: #ffffff !important;
  max-height: 300px;
}
.drmt-alert-media.drmt-video-wrap {
  aspect-ratio: 16 / 9;
  max-height: 300px;
}
.drmt-alert-media iframe,
.drmt-alert-media video {
  background: #000;
}
.drmt-alert-content {
  padding: 20px 22px 22px !important;
}
.drmt-alert-content h2 {
  font-size: clamp(22px, 3vw, 32px) !important;
  line-height: 1.08;
  margin-bottom: 8px !important;
}
.drmt-alert-content p {
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.drmt-alert-content .drmt-card-meta {
  margin-bottom: 8px;
}
.drmt-alert-actions {
  margin-top: 16px;
}
.drmt-alert-actions .drmt-announcement-button,
.drmt-alert-actions .drmt-alert-secondary {
  padding: 10px 14px !important;
  border-radius: 13px !important;
  font-size: 14px !important;
}
@media (max-width: 640px) {
  .drmt-alert-dialog {
    width: calc(100vw - 20px);
    margin: 3vh auto;
    border-radius: 20px;
    max-height: calc(100vh - 24px) !important;
    overflow: auto !important;
  }
  .drmt-alert-media,
  .drmt-alert-media.drmt-video-wrap {
    max-height: 220px;
  }
  .drmt-alert-content { padding: 17px !important; }
}


.drmt-form-help-inline {
  display: block;
  margin: 4px 0 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 500;
}
.drmt-dashboard-form input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
}

/* Phase 4.8 front-end login */
.drmt-front-login-form{display:grid;gap:13px;margin-top:16px}.drmt-front-login-form label{display:grid;gap:6px;font-weight:800;color:#334155}.drmt-front-login-form input[type="text"],.drmt-front-login-form input[type="password"]{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:14px;padding:12px 13px;font-size:15px;background:#fff;color:#0f172a}.drmt-admin-notice.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.drmt-login-remember{display:flex!important;align-items:center;gap:8px}
