/* Joe editor shortcode compatibility, scoped to article content. */
.article-content .nova-message > div,
.article-content .nova-alert > div,
.article-content .nova-callout > div,
.article-content .nova-card > div,
.article-content .nova-tabs__pane,
.article-content .nova-collapse details > div {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content .nova-card,
.article-content .nova-card-list,
.article-content .nova-tabs,
.article-content .nova-collapse,
.article-content .nova-cloud,
.article-content .nova-copy,
.article-content .nova-progress {
  max-width: 100%;
}

.article-content .nova-lamp {
  animation: nova-lamp 4s linear infinite;
  background: linear-gradient(90deg, #f7768e, #e0af68, #79c76d, #62c7be, #7aa2f7, #f7768e);
  background-size: 200% 100%;
  border-radius: var(--island-pill-radius);
  display: block;
  height: 4px;
  margin: 1.8em 0;
  width: 100%;
}

.article-content .nova-check {
  appearance: none;
  background: transparent;
  border: 2px solid var(--island-link);
  border-radius: 4px;
  height: 17px;
  margin: 0 7px 0 2px;
  vertical-align: -3px;
  width: 17px;
}

.article-content .nova-check:checked {
  background: var(--island-accent);
  box-shadow: inset 0 0 0 3px var(--island-paper);
}

.article-content .nova-emoji {
  background: rgba(244, 230, 168, 0.46);
  border: 1px solid rgba(118, 83, 60, 0.24);
  border-radius: var(--island-pill-radius);
  display: inline-flex;
  font-size: 0.82em;
  line-height: 1.4;
  margin-inline: 0.12em;
  padding: 0.08em 0.48em;
  vertical-align: 0.08em;
}

.nova-mtitle {
  align-items: center;
  display: flex !important;
  font-size: 1.2rem !important;
  gap: 1rem;
  justify-content: center;
  margin: 2em 0 !important;
}

.nova-mtitle::before,
.nova-mtitle::after {
  background: var(--island-accent);
  content: "";
  height: 2px;
  width: 2.2rem;
}

.article-content .nova-action,
.article-content .nova-note {
  align-items: center;
  border: 2px solid var(--island-wood);
  box-shadow: 0 3px 0 rgba(118, 83, 60, 0.2);
  color: var(--island-ink) !important;
  display: inline-flex;
  gap: 0.55rem;
  line-height: 1.4;
  margin: 0.35rem 0.5rem 0.35rem 0;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.nova-action {
  background: var(--button-color, var(--island-accent));
}

.nova-action:hover,
.nova-note:hover {
  filter: brightness(1.03);
  transform: translateY(-2px);
}

.nova-note {
  border-radius: var(--island-input-radius);
}

.nova-note--secondary { background: #d8d2c5; }
.nova-note--success { background: #bce4b5; }
.nova-note--warning { background: #f4e6a8; }
.nova-note--error { background: #f5c3c8; }
.nova-note--info { background: #bce8ee; }

.nova-dotted {
  background: repeating-linear-gradient(-45deg, var(--dot-a) 0, var(--dot-a) 18px, transparent 18px, transparent 23px, var(--dot-b) 23px, var(--dot-b) 41px, transparent 41px, transparent 46px);
  background-size: 65px;
  display: block;
  height: 4px;
  margin: 2em 0;
}

.nova-message,
.nova-alert,
.nova-callout,
.nova-hidden {
  background: rgba(244, 230, 168, 0.22);
  border: 2px solid var(--island-line);
  border-left: 5px solid;
  border-radius: var(--island-input-radius);
  display: flex;
  gap: 0.8rem;
  line-height: 1.65;
  margin: 1.6em 0;
  padding: 1rem 1.1rem;
}

.nova-message__icon {
  align-items: center;
  background: var(--island-accent);
  border-radius: 50%;
  color: #243c3a;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 0.75rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
}

.nova-message--info,
.nova-alert--info { border-left-color: #3e8ca8; }
.nova-message--success,
.nova-alert--success { border-left-color: #4f9349; }
.nova-message--warning,
.nova-alert--warning { border-left-color: #b47b1b; }
.nova-message--error,
.nova-alert--error { border-left-color: #b84f5f; }
.nova-callout { border-left-color: var(--callout, var(--island-accent)); }

.nova-hidden {
  align-items: center;
  background: repeating-linear-gradient(135deg, var(--island-paper), var(--island-paper) 12px, rgba(244, 230, 168, 0.38) 12px, rgba(244, 230, 168, 0.38) 24px);
  border-left-color: var(--island-accent);
  justify-content: center;
}

.article-content .nova-hidden a { margin-left: 0.5rem; }

.nova-progress {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  margin: 1.4em 0;
}

.nova-progress > span {
  background: rgba(118, 83, 60, 0.12);
  border-radius: var(--island-pill-radius);
  flex: 1;
  height: 14px;
  overflow: hidden;
}

.nova-progress i {
  border-radius: inherit;
  display: block;
  height: 100%;
  position: relative;
}

.nova-progress i::after {
  animation: nova-progress 2.2s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 253, 241, 0.55), transparent);
  content: "";
  inset: 0;
  position: absolute;
}

.nova-progress b {
  color: var(--island-ink);
  font-size: 0.78rem;
}

.nova-copy {
  align-items: center;
  background: var(--island-paper);
  border: 2px solid var(--island-line);
  border-radius: var(--island-input-radius);
  display: flex;
  justify-content: space-between;
  margin: 1.4em 0;
  min-height: 44px;
  padding: 0.8rem 1rem;
  width: 100%;
}

.nova-copy:hover { border-color: var(--island-wood); }
.nova-copy b {
  background: var(--island-accent);
  border-radius: var(--island-pill-radius);
  color: var(--island-ink);
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
}

.nova-cloud {
  align-items: center;
  background: rgba(244, 230, 168, 0.2);
  border: 2px solid var(--island-line);
  border-radius: var(--island-card-radius);
  display: flex;
  gap: 0.9rem;
  margin: 1.5em 0;
  padding: 1rem;
}

.nova-cloud__mark {
  align-items: center;
  background: var(--island-accent);
  border-radius: 12px;
  color: var(--island-ink);
  display: inline-flex;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
}

.nova-cloud > span:nth-child(2) {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.nova-cloud small { color: #65594b; font-size: 0.72rem; }
.article-content .nova-cloud > a {
  border: 2px solid var(--island-line);
  border-radius: var(--island-pill-radius);
  color: var(--island-ink);
  flex: none;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
}

.nova-card,
.nova-card-list,
.nova-tabs,
.nova-collapse {
  background: var(--island-paper);
  border: 2px solid var(--island-line);
  border-radius: var(--island-card-radius);
  margin: 1.7em auto;
  overflow: hidden;
}

.nova-card > header {
  background: rgba(244, 230, 168, 0.28);
  border-bottom: 2px solid var(--island-line);
  font-family: var(--island-display);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.7rem 1rem;
}

.nova-card > div,
.nova-card-list__item { padding: 1rem; }
.nova-card-list__item + .nova-card-list__item { border-top: 2px solid var(--island-line); }

.nova-describe {
  border: 2px dashed rgba(118, 83, 60, 0.42);
  border-radius: var(--island-input-radius);
  margin: 1.8em 0;
  padding: 1rem;
}

.nova-describe legend {
  color: var(--island-link);
  font-family: var(--island-display);
  font-weight: 900;
  padding: 0 0.5rem;
}

.nova-tabs__nav {
  background: rgba(244, 230, 168, 0.32);
  border-bottom: 2px solid var(--island-line);
  display: flex;
  gap: 0.2rem;
  overflow: auto;
  padding: 0.4rem 0.4rem 0;
}

.nova-tabs__nav button {
  background: transparent;
  border: 0;
  color: #65594b;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  position: relative;
  white-space: nowrap;
}

.nova-tabs__nav button.active { color: var(--island-ink); font-weight: 900; }
.nova-tabs__nav button.active::after {
  background: var(--island-accent);
  bottom: 0;
  content: "";
  height: 4px;
  left: 0.7rem;
  position: absolute;
  right: 0.7rem;
}

.nova-tabs__pane { padding: 1.1rem; }
.nova-tabs__pane[hidden] { display: none; }

.nova-timeline { margin: 1.8em 0; }
.nova-timeline__item { padding: 0 0 1.5rem 1.9rem; position: relative; }
.nova-timeline__item::before {
  background: var(--island-line);
  bottom: -0.55rem;
  content: "";
  left: 0.45rem;
  position: absolute;
  top: 0.55rem;
  width: 2px;
}
.nova-timeline__item:last-child::before { display: none; }
.nova-timeline__item > i {
  background: var(--timeline);
  border: 3px solid var(--island-paper);
  border-radius: 50%;
  height: 15px;
  left: 0.05rem;
  position: absolute;
  top: 0.45rem;
  width: 15px;
}

.nova-collapse details + details { border-top: 2px solid var(--island-line); }
.nova-collapse summary {
  align-items: center;
  background: rgba(244, 230, 168, 0.28);
  display: flex;
  font-weight: 700;
  justify-content: space-between;
  min-height: 44px;
  padding: 0.75rem 1rem;
}
.nova-collapse summary::-webkit-details-marker { display: none; }
.nova-collapse details[open] summary span { transform: rotate(45deg); }
.nova-collapse details > div { padding: 1rem; }

.nova-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  margin: 1.7em 0;
}

.nova-grid__item {
  background: var(--island-paper);
  border: 2px solid var(--island-line);
  border-radius: var(--island-input-radius);
  min-width: 0;
  padding: 0.9rem;
}

.nova-embed,
.nova-video {
  aspect-ratio: 16 / 9;
  background: #1a1b26;
  border-radius: var(--island-card-radius);
  margin: 1.8em 0;
  overflow: hidden;
  position: relative;
}
.nova-embed iframe,
.nova-video video { border: 0; height: 100%; inset: 0; position: absolute; width: 100%; }
.nova-embed--music { aspect-ratio: auto; background: transparent; min-height: 86px; }
.nova-embed--music iframe { height: 86px; position: relative; }

.nova-audio {
  align-items: center;
  background: rgba(244, 230, 168, 0.2);
  border: 2px solid var(--island-line);
  border-radius: var(--island-card-radius);
  display: flex;
  gap: 1rem;
  margin: 1.7em 0;
  padding: 0.9rem;
}
.nova-audio figcaption { display: flex; flex-direction: column; min-width: 8rem; }
.nova-audio small { color: #65594b; font-size: 0.68rem; letter-spacing: 0.16em; }
.nova-audio audio { height: 44px; width: 100%; }

@keyframes nova-lamp { to { background-position: 200% 0; } }
@keyframes nova-progress { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

@media (prefers-reduced-motion: no-preference) {
  .nova-action,
  .nova-note,
  .nova-tabs__nav button,
  .nova-collapse summary span {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .article-content .nova-lamp,
  .nova-progress i::after { animation: none !important; }
  .nova-action,
  .nova-note,
  .nova-tabs__nav button,
  .nova-collapse summary span { transition: none !important; }
}

@media (max-width: 720px) {
  .nova-grid { grid-template-columns: minmax(0, 1fr); }
  .nova-cloud { align-items: flex-start; flex-wrap: wrap; }
  .article-content .nova-cloud > a { margin-left: 58px; }
  .nova-audio { display: block; }
  .nova-audio figcaption { margin-bottom: 0.75rem; }
  .nova-tabs__pane { padding: 0.85rem; }
}
