/* Shared action system, loaded after public and member page styles.
 * primary = commit/start, secondary = alternative, ghost = quiet action,
 * danger = destructive action. Links navigate; buttons change state.
 */
:root {
  --action-fill: #00c8ff;
  --action-hover: #00b3eb;
  --action-ink: #071c38;
  --action-border: #b8cbd9;
  --action-link: #00618d;
  --action-danger: #a12738;
  --action-radius: 6px;
}
.hub-content :is(.button, .story-button),
.hub-content .hub-member-area :is(.button, .story-button),
.hub-content .hub-member-area :is(.upload-submit, .vip-calendar-cta),
.hub-header-clear .hub-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--action-border);
  border-radius: var(--action-radius);
  background: #fff;
  color: var(--action-ink);
  font: 700 15px/1.4 Inter, Arial, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.hub-content .hub-member-area :is(.button, .story-button) { font-size: 13px; }
.hub-content :is(.button, .story-button) > span,
.hub-content .hub-member-area :is(.button, .story-button) > span { margin-left: 0; }
.hub-content :is(.button, .story-button) svg { flex-shrink: 0; }
.hub-content :is(.button, .story-button):hover,
.hub-content .hub-member-area :is(.button, .story-button):hover { background: #edf5fa; border-color: #779ab2; }
.hub-content :is(.button, .story-button).primary,
.hub-content .hub-member-area :is(.button, .story-button).primary,
.hub-content .hub-member-area :is(.upload-submit, .vip-calendar-cta),
.hub-header-clear .hub-header-cta {
  background: var(--action-fill); color: var(--action-ink); border-color: transparent;
}
.hub-content :is(.button, .story-button).primary:hover,
.hub-content .hub-member-area :is(.button, .story-button).primary:hover,
.hub-content .hub-member-area :is(.upload-submit, .vip-calendar-cta):hover,
.hub-header-clear .hub-header-cta:hover { background: var(--action-hover); border-color: transparent; }
.hub-content :is(.button, .story-button):is(.secondary, .subtle, .light),
.hub-content .hub-member-area :is(.button, .story-button):is(.secondary, .subtle, .light) {
  background: #fff; color: var(--action-ink); border-color: var(--action-border);
}
.hub-content :is(.button, .story-button):is(.secondary, .subtle, .light):hover,
.hub-content .hub-member-area :is(.button, .story-button):is(.secondary, .subtle, .light):hover { background: #edf5fa; border-color: #779ab2; }
.hub-content :is(.button, .story-button).ghost,
.hub-content .hub-member-area :is(.button, .story-button).ghost { background: transparent; color: var(--action-link); border-color: transparent; }
.hub-content :is(.button, .story-button).ghost:hover,
.hub-content .hub-member-area :is(.button, .story-button).ghost:hover { background: #edf5fa; border-color: transparent; }
.hub-content :is(.button, .story-button).danger,
.hub-content .hub-member-area :is(.button, .story-button).danger {
  color: var(--action-danger); background: #fff4f5; border-color: #deb1b8;
}
.hub-content :is(.button, .story-button).danger:hover,
.hub-content .hub-member-area :is(.button, .story-button).danger:hover { background: #fbe1e5; border-color: var(--action-danger); }
.hub-content :is(.button, .story-button):is(:disabled, [aria-disabled="true"]),
.hub-content .hub-member-area :is(.button, .story-button):is(:disabled, [aria-disabled="true"]),
.hub-content .hub-member-area .upload-submit:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none;
}
/* Compact controls remain compact in dense project and table toolbars. */
.hub-content :is(.button, .story-button).compact { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.hub-content :is(.text-link, .hub-action-link, .member-text-link, .fi-back),
.hub-content .hub-member-area :is(.text-link, .hub-action-link, .member-text-link, .fi-back) {
  color: var(--action-link);
  font: 650 16px/1.5 Inter, Arial, sans-serif;
  letter-spacing: 0;
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.hub-content .hub-member-area :is(.text-link, .hub-action-link, .member-text-link, .fi-back) { font-size: 14px; }
.hub-content :where(p, li, dd, address) > a:not([class]),
.hub-content :is(a[href^="mailto:"], a[href^="tel:"]):not(:is(.button, .story-button)),
.hub-content .member-danger-link {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.hub-content .member-danger-link { color: var(--action-danger); }
.hub-content :is(.text-link, .hub-action-link, .member-text-link, .fi-back):hover { text-decoration-thickness: 2px; }
.hub-content :where(.hero, .hub-hero, .closing, .form-heading, .hub-subhero, .hub-publication) :is(.text-link, .hub-action-link, :is(.button, .story-button).ghost) { color: #8ee4ff; }
/* Navigation, cards, disclosures and icon controls retain their own layout. */
body :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #007cae; outline-offset: 4px;
  box-shadow: 0 0 0 2px #fff;
}
.hub-content .hub-member-area :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #007cae; outline-offset: 4px;
}
@media (max-width: 600px) {
  .hub-content .hero-buttons { align-items: stretch; gap: 12px; }
  .hub-content .hero-buttons > :is(.button, .story-button) { justify-content: center; }
  .hub-content .hub-member-area :is(.button, .story-button).compact { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-content :is(.button, .story-button), .hub-header-clear .hub-header-cta { transition: none; }
}
/* The static league keeps its table/filter layout and shares interaction states. */
.hub-league nav a:hover { color: var(--action-link); }
.hub-league .filter button { min-height: 44px; border-radius: var(--action-radius); }
.hub-league .filter button[aria-pressed="true"] { background: var(--action-ink); color: #fff; box-shadow: none; }
.hub-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The moments editor uses the historic story-button name for its main action. */
.hub-content .hub-member-area .story-button:not(.secondary):not(.danger) { background: var(--action-fill); color: var(--action-ink); border-color: transparent; }
.hub-content .hub-member-area .story-button:not(.secondary):not(.danger):hover { background: var(--action-hover); }

/* Separate the main action from secondary links instead of inline wrapping. */
.hub-content .hub-action-group { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 24px; }
.hub-content .hub-action-group-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hub-content .hub-action-group .text-link { display: inline-flex; align-items: baseline; gap: 6px; margin: 0; padding: 0; }
.hub-content .hub-action-group .text-link > span { margin-left: 0; }
@media (max-width: 600px) {
  .hub-content .hub-action-group-links { flex-direction: column; align-items: flex-start; gap: 14px; }
}
