/* MyBriefs-only Event Brief presentation experiment. */
.mybriefs-editorial {
  background: #f5f3ed;
  color: #1d292a;
}

.mybriefs-editorial .content {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.mybriefs-editorial .dispatch.dispatch-event-brief {
  padding: 1.55rem 0 1.7rem;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #d9d7cf;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  cursor: default;
}

.mybriefs-editorial .dispatch.dispatch-event-brief:hover {
  background: transparent;
  border-left-width: 0;
  box-shadow: none;
  transform: none;
}

/* Subtle lift for feed Event Brief cards on desktop pointers only. Scoped to <main>, so the
   Earlier Report modal (same classes) never moves; cards are not clickable, so the cursor stays
   default. The base transition is kept for everything else (e.g. AAA font-size changes). */
@media (hover: hover) and (pointer: fine) {
  .mybriefs-editorial main .dispatch.dispatch-event-brief {
    transition: all .3s cubic-bezier(.4, 0, .2, 1), transform .18s ease-out, box-shadow .18s ease-out;
  }

  .mybriefs-editorial main .dispatch.dispatch-event-brief:hover {
    box-shadow: 0 10px 22px -14px rgba(29, 41, 42, .35);
    transform: translateY(-2px);
  }

  html[data-theme="dark"] .mybriefs-editorial main .dispatch.dispatch-event-brief:hover {
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .7) !important;
  }

  /* A lifted card paints in its own layer; keep a card with an open Share menu above it. */
  .mybriefs-editorial main .dispatch.dispatch-event-brief:has(.mybriefs-share-trigger[aria-expanded="true"]) {
    position: relative;
    z-index: 2;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .mybriefs-editorial main .dispatch.dispatch-event-brief:hover {
    transform: none;
  }
}

/* The Event Brief kicker is no longer shown (its markup is commented out in the templates), so its
   first-child rule is disabled: the first child is now the timestamp block.
.mybriefs-editorial .dispatch-event-brief > div:first-child {
  color: #777d78 !important;
  font: 650 .66rem/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}
*/

.mybriefs-editorial .dispatch-event-brief .story-meta {
  margin-bottom: .55rem !important;
  color: #777d78;
  font: 400 .75rem/1.35 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: .02em;
}

.mybriefs-editorial .dispatch-event-brief .story-meta > div {
  margin-bottom: .2rem !important;
  font-size: inherit !important;
}

.mybriefs-editorial .dispatch-event-brief .updated-badge {
  color: #3e7957 !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-size: .72rem !important;
  font-weight: 600 !important;
  letter-spacing: .05em !important;
}

.mybriefs-editorial .dispatch-event-brief h3.event-brief-headline {
  margin: 0;
  color: #1d292a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2.4vw, 2.15rem) !important;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

/* Share: one compact menu button beneath the headline; the four actions live in its menu. */
.mybriefs-editorial .mybriefs-share-menu {
  position: relative;
  display: inline-block;
  margin: .55rem 0 .15rem;
}

.mybriefs-editorial .mybriefs-share-trigger {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 32px;
  padding: .25rem .5rem .25rem .45rem;
  border: 1px solid #d8d8d0;
  border-radius: 4px;
  background: transparent;
  color: #53605a;
  cursor: pointer;
  font: 600 .74rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mybriefs-editorial .mybriefs-share-trigger svg {
  width: .95rem;
  height: .95rem;
  flex: none;
}

.mybriefs-editorial .mybriefs-share-chevron {
  width: .8rem !important;
  height: .8rem !important;
  transition: transform .15s ease;
}

.mybriefs-editorial .mybriefs-share-trigger[aria-expanded="true"] .mybriefs-share-chevron {
  transform: rotate(180deg);
}

.mybriefs-editorial .mybriefs-share-trigger:hover,
.mybriefs-editorial .mybriefs-share-trigger[aria-expanded="true"] {
  background: #eeece4;
  color: #293532;
}

.mybriefs-editorial .mybriefs-share-trigger:focus-visible,
.mybriefs-editorial .mybriefs-share-actions [role="menuitem"]:focus-visible {
  outline: 2px solid #927947;
  outline-offset: -2px;
}

/* Absolutely positioned over the stories below (cards do not clip overflow). The menu sets the
   font size so items keep it even when the AAA control sets inline font-size: inherit on links. */
.mybriefs-editorial .mybriefs-share-actions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  min-width: 12.5rem;
  padding: .3rem 0;
  border: 1px solid #d8d8d0;
  border-radius: 6px;
  background: #fbfaf6;
  box-shadow: 0 8px 24px rgba(29, 41, 42, .14);
  font: 500 .84rem/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mybriefs-editorial .mybriefs-share-actions[hidden] {
  display: none;
}

.mybriefs-editorial .mybriefs-share-actions [role="menuitem"] {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 0;
  background: transparent;
  color: #293532;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

.mybriefs-editorial .mybriefs-share-actions [role="menuitem"]:hover,
.mybriefs-editorial .mybriefs-share-actions [role="menuitem"]:focus {
  background: #eeece4;
}

.mybriefs-editorial .mybriefs-share-actions [role="menuitem"]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  flex: none;
  background-color: currentColor;
  -webkit-mask: var(--mybriefs-share-icon) center / contain no-repeat;
  mask: var(--mybriefs-share-icon) center / contain no-repeat;
}

.mybriefs-editorial .mybriefs-share-copy { --mybriefs-share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E"); }
.mybriefs-editorial .mybriefs-share-native { --mybriefs-share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7.5 7.5 12 3l4.5 4.5M5 12v7.5A1.5 1.5 0 0 0 6.5 21h11a1.5 1.5 0 0 0 1.5-1.5V12'/%3E%3C/svg%3E"); }
.mybriefs-editorial .mybriefs-share-email { --mybriefs-share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E"); }
.mybriefs-editorial .mybriefs-contact-share { --mybriefs-share-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18.5 14a6.5 6.5 0 0 1 3 6'/%3E%3C/svg%3E"); }

.mybriefs-editorial .mybriefs-share-status {
  color: #68706e;
  font: 400 .72rem/1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mybriefs-editorial .dispatch-event-brief > p {
  margin: .75rem 0 1rem;
  color: #4b5552;
  font: 400 .96rem/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.mybriefs-editorial .dispatch-event-brief .five-w {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 1.2rem;
}

.mybriefs-editorial .dispatch-event-brief .fivew-row {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  gap: .5rem;
  align-items: baseline;
  margin: 0;
  line-height: 1.6;
}

.mybriefs-editorial .dispatch-event-brief .fivew-label {
  color: #8b784b;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: .6666667em;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  padding: 0;
}

.mybriefs-editorial .dispatch-event-brief .fivew-value {
  color: #303936;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: inherit;
  font-weight: 400;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.mybriefs-editorial .dispatch-event-brief .links {
  padding-right: 0;
}

.mybriefs-editorial .mybriefs-full-brief-toggle {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .1rem 0 .65rem;
  padding: .3rem 0;
  border: 0;
  background: transparent;
  color: #526258;
  cursor: pointer;
  font: 650 .84rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: left;
}

.mybriefs-editorial .mybriefs-full-brief-toggle:hover {
  color: #293532;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.mybriefs-editorial .mybriefs-full-brief-toggle:focus-visible {
  outline: 2px solid #927947;
  outline-offset: 2px;
}

.mybriefs-editorial .mybriefs-full-brief-indicator {
  font-size: 1rem;
  line-height: 1;
}

.mybriefs-editorial .mybriefs-full-brief-section[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .mybriefs-editorial .dispatch.dispatch-event-brief {
    padding: 1.3rem 0 1.45rem;
  }

  .mybriefs-editorial .dispatch.dispatch-event-brief h3.event-brief-headline {
    font-size: 1.55rem !important;
  }

  .mybriefs-editorial .dispatch-event-brief > p {
    font-size: .91rem;
  }

  .mybriefs-editorial .dispatch-event-brief .fivew-row {
    grid-template-columns: 3.7rem minmax(0, 1fr);
    gap: .35rem;
  }

}

/* Earlier Report modal: the report renders as a main-feed Event Brief
   (article.dispatch.dispatch-event-brief), so the headline, summary, Read More and 5W rules
   above apply unchanged. Only the feed spacing and divider are dropped inside the dialog. */
.mybriefs-editorial #sitrep-history-modal .share-modal-content {
  background: #f5f3ed;
  color: #1d292a;
}

.mybriefs-editorial #sitrep-history-modal .dispatch.dispatch-event-brief {
  padding: 0;
  border-bottom: 0;
}

.mybriefs-editorial #sitrep-history-modal .mybriefs-full-brief-toggle[hidden] {
  display: none;
}

html[data-theme="dark"] .mybriefs-editorial {
  background: var(--bb-bg, #111820);
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .content {
  background: var(--bb-surface, #1d2832);
}

html[data-theme="dark"] .mybriefs-editorial .dispatch.dispatch-event-brief,
html[data-theme="dark"] .mybriefs-editorial .dispatch.dispatch-event-brief:hover {
  background: transparent !important;
  border-bottom-color: var(--bb-border, #43515d);
  box-shadow: none !important;
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief h3.event-brief-headline {
  color: var(--bb-text, #e9edf0) !important;
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief .story-meta {
  color: var(--bb-muted, #b3c0ca) !important;
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief .updated-badge {
  color: #8cc4a2 !important;
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief > p {
  color: var(--bb-muted, #b3c0ca);
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief .fivew-label {
  color: #c7b27f;
}

html[data-theme="dark"] .mybriefs-editorial .dispatch-event-brief .fivew-value {
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-full-brief-toggle {
  color: var(--bb-link, #9fc9ed);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-full-brief-toggle:hover {
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-trigger {
  border-color: var(--bb-border, #43515d);
  color: var(--bb-muted, #b3c0ca);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-trigger:hover,
html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-trigger[aria-expanded="true"] {
  background: var(--bb-surface-raised, #24323e);
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-actions {
  border-color: var(--bb-border, #43515d);
  background-color: var(--bb-surface, #1d2832);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-actions [role="menuitem"] {
  color: var(--bb-text, #e9edf0);
}

html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-actions [role="menuitem"]:hover,
html[data-theme="dark"] .mybriefs-editorial .mybriefs-share-actions [role="menuitem"]:focus {
  background-color: var(--bb-surface-raised, #24323e);
}
